static <R,E extends Exception> IntFunction<R> |
IntFunctionWithException.ignored(IntFunctionWithException<R,E> function) |
Converts a IntFunctionWithException to a lifted IntFunction
returning null in case of exception.
|
static <R,E extends Exception> IntFunction<R> |
IntFunctionWithException.ignored(IntFunctionWithException<R,E> function,
R defaultValue) |
Converts a IntFunctionWithException to a lifted IntFunction
returning a default value in case of exception.
|
static <R,E extends Exception> IntFunction<Optional<R>> |
IntFunctionWithException.lifted(IntFunctionWithException<R,E> function) |
Converts a IntFunctionWithException to a lifted IntFunction
using Optional as return value.
|
static <R,E extends Exception> IntFunction<CompletionStage<R>> |
IntFunctionWithException.staged(IntFunctionWithException<R,E> function) |
Convert this IntFunctionWithException to a lifted IntFunction
returning CompletionStage as return value.
|
static <R,E extends Exception> IntFunction<R> |
IntFunctionWithException.unchecked(IntFunctionWithException<R,E> function) |
Converts a IntFunctionWithException to a IntFunction that
wraps exception to RuntimeException .
|
static <R,E extends Exception> IntFunction<R> |
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.
|