| Modifier and Type | Method | Description |
|---|---|---|
static <T,E extends Exception> |
UnaryOperatorWithException.failing(Supplier<E> exceptionBuilder) |
Returns a unary operator that always throw exception.
|
static <T,E extends Exception> |
UnaryOperatorWithException.identity() |
Returns a unary operator that always returns its input argument.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T,E extends Exception> |
UnaryOperatorWithException.ignored(UnaryOperatorWithException<T,E> function) |
Converts a
UnaryOperatorWithException to a lifted
UnaryOperator returning null in case of exception. |
static <T,E extends Exception> |
UnaryOperatorWithException.lifted(UnaryOperatorWithException<T,E> function) |
Converts a
UnaryOperatorWithException to a lifted Function
returning Optional. |
static <T,E extends Exception> |
UnaryOperatorWithException.unchecked(UnaryOperatorWithException<T,E> function) |
Converts a
UnaryOperatorWithException to a UnaryOperator that
wraps exception to RuntimeException. |
static <T,E extends Exception> |
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. |
Copyright © 2019. All rights reserved.