Interface CheckedBiFunction<T, U, R, E extends Exception>

Type Parameters:
T - The type of the first input argument of the function
U - The type of the second input argument of 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 CheckedBiFunction<T, U, R, E extends Exception>
Represents a BiFunction that throws an exception.
  • Method Summary

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

    • apply

      R apply(T t, U u) throws E
      Applies this function to the given arguments.
      Parameters:
      t - The first function argument.
      u - The second function argument.
      Returns:
      The function result.
      Throws:
      E - An exception that occurred while performing the operation.