Package org.nuxeo.common.function
Interface ThrowableUnaryOperator<T,E extends Throwable>
- Type Parameters:
T
- the type of the input and output of the operatorE
- the type of exception to throw
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- Since:
- 2023.14
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
E extends Throwable>
UnaryOperator<T>asUnaryOperator
(ThrowableUnaryOperator<T, E> throwableUnaryOperator) default UnaryOperator<T>
-
Method Details
-
apply
-
toFunction
- Returns:
- this
ThrowableUnaryOperator
as aUnaryOperator
throwing the checked exception as an unchecked one
-
asUnaryOperator
static <T,E extends Throwable> UnaryOperator<T> asUnaryOperator(ThrowableUnaryOperator<T, E> throwableUnaryOperator) - Returns:
- the given
ThrowableUnaryOperator
as aUnaryOperator
throwing the checked exception as an unchecked one
-