A
- the type of the first argument of the functionB
- the type of the second argument of the functionR
- the type of the result of the function@ConsumerType
@FunctionalInterface
public interface ThrowableBiFunction<A,B,R>
BiFunction
that can throw an exception.Modifier and Type | Method and Description |
---|---|
default <V> ThrowableBiFunction<A,B,V> |
andThen(ThrowableFunction<? super R,? extends V> throwableFunction)
Returns the
ThrowableBiFunction that first executes the current
ThrowableBiFunction instance's apply method, then uses
the result as input for the afterFunction parameter's apply method. |
R |
apply(A a,
B b)
Applies the current
ThrowableBiFunction and returns a value of
type R . |
default <V> ThrowableBiFunction<A,B,V> andThen(ThrowableFunction<? super R,? extends V> throwableFunction)
ThrowableBiFunction
that first executes the current
ThrowableBiFunction
instance's apply
method, then uses
the result as input for the afterFunction
parameter's apply
method.throwableFunction
- the ThrowableBiFunction
to execute
after the current instanceThrowableBiFunction
that executes the current
instance's apply
method, then uses the result as input
for the throwableFunction
parameter's apply
methodR apply(A a, B b) throws java.lang.Exception
ThrowableBiFunction
and returns a value of
type R
. This function can be implemented explicitly or with a
lambda.a
- the function's first argumentb
- the function's second argumentR
java.lang.Exception