Package org.nuxeo.common.function
Class FunctionUtils
- java.lang.Object
-
- org.nuxeo.common.function.FunctionUtils
-
public class FunctionUtils extends Object
Helper class to handlejava.util.function
classes.- Since:
- 11.1
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static <T extends Exception,R>
RsneakyThrow(Throwable t)
Method allowing to throw a checked exception as an unchecked one.
-
-
-
Method Detail
-
sneakyThrow
protected static <T extends Exception,R> R sneakyThrow(Throwable t) throws T extends Exception
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 Exception
-
-