Package panda.std.function
Interface ThrowingFunction<T,R,E extends Throwable>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionasFunction(ThrowingFunction<T, R, E> function, Function<E, R> exceptionHandler) Map throwing function in default stream api with exception consume supportstatic <T,S extends Exception>
ThrowingFunction<T,T, S> identity()
-
Method Details
-
apply
-
identity
-
asFunction
static <T,R, Function<T,E extends Throwable> R> asFunction(ThrowingFunction<T, R, E> function, Function<E, R> exceptionHandler) Map throwing function in default stream api with exception consume support- Type Parameters:
T- type of function parameterR- type of function resultE- type of exception- Parameters:
function- the function to applyexceptionHandler- the exception consumer- Returns:
- a new function
-