Interface ThrowingBiFunction<I1,I2,R,T extends Throwable>

Type Parameters:
I1 - the type of the first argument to the operation
I2 - the type of the second argument to the operation
R - the type of the result of the function
T - the type of the exception the accept method may throw
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 ThrowingBiFunction<I1,I2,R,T extends Throwable>
Represents a function that accepts two arguments, produces a result and may thrown an exception.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(I1 in1, I2 in2)
    Applies this function to the given arguments, potentially throwing an exception.
  • Method Details

    • apply

      R apply(I1 in1, I2 in2) throws T
      Applies this function to the given arguments, potentially throwing an exception.
      Parameters:
      in1 - the first function argument
      in2 - the second function argument
      Returns:
      the function result
      Throws:
      T - the exception that may be thrown