A
- the type of the first argument of the functionB
- the type of the second argument of the functionC
- the type of the third argument of the functionD
- the type of the fourth argument of the functionE
- the type of the fifth argument of the functionR
- the type of the result of the function@ConsumerType
@FunctionalInterface
public interface ThrowablePentaFunction<A,B,C,D,E,R>
PentaFunction
that can throw an exception.Modifier and Type | Method and Description |
---|---|
default <V> ThrowablePentaFunction<A,B,C,D,E,V> |
andThen(ThrowableFunction<? super R,? extends V> throwableFunction)
Returns the
ThrowablePentaFunction that first executes the
current ThrowablePentaFunction instance's apply method,
then uses the result as input for the afterFunction parameter's
apply method. |
R |
apply(A a,
B b,
C c,
D d,
E e)
Applies the current
ThrowablePentaFunction and returns a value of
type R . |
default <V> ThrowablePentaFunction<A,B,C,D,E,V> andThen(ThrowableFunction<? super R,? extends V> throwableFunction)
ThrowablePentaFunction
that first executes the
current ThrowablePentaFunction
instance's apply
method,
then uses the result as input for the afterFunction
parameter's
apply
method.throwableFunction
- the ThrowablePentaFunction
to execute
after the current instanceThrowablePentaFunction
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, C c, D d, E e) throws java.lang.Exception
ThrowablePentaFunction
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 argumentc
- the function's third argumentd
- the function's fourth argumente
- the function's fifth argumentR
java.lang.Exception