static <T,E extends Exception> UnaryOperator<T> |
UnaryOperatorWithException.ignored(UnaryOperatorWithException<T,E> function) |
Converts a UnaryOperatorWithException to a lifted
UnaryOperator returning null in case of exception.
|
static <T,E extends Exception> Function<T,Optional<T>> |
UnaryOperatorWithException.lifted(UnaryOperatorWithException<T,E> function) |
Converts a UnaryOperatorWithException to a lifted Function
returning Optional .
|
static <T,E extends Exception> UnaryOperator<T> |
UnaryOperatorWithException.unchecked(UnaryOperatorWithException<T,E> function) |
Converts a UnaryOperatorWithException to a UnaryOperator that
wraps exception to RuntimeException .
|
static <T,E extends Exception> UnaryOperator<T> |
UnaryOperatorWithException.unchecked(UnaryOperatorWithException<T,E> function,
Function<Exception,RuntimeException> exceptionMapper) |
Converts a UnaryOperatorWithException to a UnaryOperator that
wraps exception to RuntimeException by using the provided mapping
function.
|