| Modifier and Type | Method | Description |
|---|---|---|
static <T,E extends Exception> |
BinaryOperatorWithException.failing(Supplier<E> exceptionBuilder) |
Returns a binary operator that always throw exception.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T,E extends Exception> |
BinaryOperatorWithException.ignored(BinaryOperatorWithException<T,E> function) |
Converts a
BinaryOperatorWithException to a lifted
BinaryOperator returning null in case of exception. |
static <T,E extends Exception> |
BinaryOperatorWithException.lifted(BinaryOperatorWithException<T,E> function) |
Converts a
BinaryOperatorWithException to a lifted Function
returning an optional in case of exception. |
static <T,E extends Exception> |
BinaryOperatorWithException.unchecked(BinaryOperatorWithException<T,E> function) |
Converts a
BinaryOperatorWithException to a BinaryOperator
that convert exception to RuntimeException. |
static <T,E extends Exception> |
BinaryOperatorWithException.unchecked(BinaryOperatorWithException<T,E> function,
Function<Exception,RuntimeException> exceptionMapper) |
Converts a
BinaryOperatorWithException to a BinaryOperator
that convert exception to RuntimeException by using the provided
mapping function. |
Copyright © 2019. All rights reserved.