A
- the type of the argument of the functionR
- the type of the result of the function@ConsumerType
@FunctionalInterface
public interface ThrowableFunction<A,R>
java.util.function.Function
that can throw an exception.Modifier and Type | Method and Description |
---|---|
default <V> ThrowableFunction<A,V> |
andThen(ThrowableFunction<? super R,? extends V> throwableFunction)
Returns a composed function that first applies the current
ThrowableFunction instance to its input, and then applies the throwableFunction to the result. |
R |
apply(A a)
Returns the result of applying the current
ThrowableFunction
instance to the argument. |
default <V> ThrowableFunction<A,V> andThen(ThrowableFunction<? super R,? extends V> throwableFunction)
ThrowableFunction
instance to its input, and then applies the throwableFunction
to the result.throwableFunction
- the function to apply after applying the
current ThrowableFunction
instance