| Modifier and Type | Method | Description |
|---|---|---|
static <R,E extends Exception> |
IntFunctionWithException.failing(Supplier<E> exceptionBuilder) |
Returns a function that always throw exception.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <R,E extends Exception> |
IntFunctionWithException.ignored(IntFunctionWithException<R,E> function) |
Converts a
IntFunctionWithException to a lifted IntFunction
returning null in case of exception. |
static <R,E extends Exception> |
IntFunctionWithException.lifted(IntFunctionWithException<R,E> function) |
Converts a
IntFunctionWithException to a lifted IntFunction
using Optional as return value. |
static <R,E extends Exception> |
IntFunctionWithException.staged(IntFunctionWithException<R,E> function) |
Convert this
IntFunctionWithException to a lifted IntFunction
returning CompletionStage as return value. |
static <R,E extends Exception> |
IntFunctionWithException.unchecked(IntFunctionWithException<R,E> function) |
Converts a
IntFunctionWithException to a IntFunction that
wraps exception to RuntimeException. |
static <R,E extends Exception> |
IntFunctionWithException.unchecked(IntFunctionWithException<R,E> function,
Function<Exception,RuntimeException> exceptionMapper) |
Converts a
IntFunctionWithException to a IntFunction that
wraps exception to RuntimeException by using the provided mapping
function. |
Copyright © 2019. All rights reserved.