Package com.hazelcast.function
Interface ThrowingFunction<T,R>
- Type Parameters:
T- the type of the argument to the functionR- the type of the result of the function
- All Superinterfaces:
Function<T,R>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
Function that declares checked exception.- Since:
- 5.7
-
Method Summary
Modifier and TypeMethodDescriptiondefault RApply given items.static <T,R> ThrowingFunction<T, R> wrap(ThrowingFunction<T, R> function) Wraps given invocation toThrowingFunction, so e.g. in stream transform user doesn't need to use try-catch block.
-
Method Details
-
applyEx
Apply given items.- Throws:
Exception- See Also:
-
apply
-
wrap
Wraps given invocation toThrowingFunction, so e.g. in stream transform user doesn't need to use try-catch block.- Since:
- 6.0
-