Interface CheckedFunction<T,R,E extends Exception>

Type Parameters:
T - The type of the input to the function
R - The type of the result of the function
E - The type of the exception thrown by the function.
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 CheckedFunction<T,R,E extends Exception>
Represents a function that throws an exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T t)
    Applies this function to the given arguments.
  • Method Details

    • apply

      R apply(T t) throws E
      Applies this function to the given arguments.
      Parameters:
      t - The first function argument.
      Returns:
      The function result.
      Throws:
      E