Interface ExceptionFunction<T,R>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ExceptionFunction<T,R>
Function that can throw an Exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    accept(T input)
    Performs an operation on the given input.
  • Method Details

    • accept

      R accept(@NonNull T input) throws Exception
      Performs an operation on the given input.
      Parameters:
      input - the input
      Returns:
      the result of the operation
      Throws:
      Exception