Package org.nuxeo.common.function
Class FunctionUtils
java.lang.Object
org.nuxeo.common.function.FunctionUtils
Helper class to handle
java.util.function
classes.- Since:
- 11.1
-
Method Summary
Modifier and TypeMethodDescriptionprotected static <T extends Throwable,
R>
RMethod allowing to throw a checked exception as an unchecked one.
-
Method Details
-
sneakyThrow
Method allowing to throw a checked exception as an unchecked one.- Type Parameters:
T
- type of exception to throwR
- type of returned object to hide- Throws:
T extends Throwable
-