static <R,E extends Exception> LongFunction<R> |
LongFunctionWithException.ignored(LongFunctionWithException<R,E> function) |
Converts a LongFunctionWithException to a lifted LongFunction
returning null in case of exception.
|
static <R,E extends Exception> LongFunction<R> |
LongFunctionWithException.ignored(LongFunctionWithException<R,E> function,
R defaultValue) |
Converts a LongFunctionWithException to a lifted LongFunction
returning a default value in case of exception.
|
static <R,E extends Exception> LongFunction<Optional<R>> |
LongFunctionWithException.lifted(LongFunctionWithException<R,E> function) |
Converts a LongFunctionWithException to a lifted Function
using Optional as return value.
|
static <R,E extends Exception> LongFunction<CompletionStage<R>> |
LongFunctionWithException.staged(LongFunctionWithException<R,E> function) |
Convert this LongFunctionWithException to a lifted
LongFunction return CompletionStage as return value.
|
static <R,E extends Exception> LongFunction<R> |
LongFunctionWithException.unchecked(LongFunctionWithException<R,E> function) |
Converts a FunctionWithException to a LongFunction that wraps
to RuntimeException .
|
static <R,E extends Exception> LongFunction<R> |
LongFunctionWithException.unchecked(LongFunctionWithException<R,E> function,
Function<Exception,RuntimeException> exceptionMapper) |
Converts a LongFunctionWithException to a LongFunction that
wraps exception to RuntimeException by using the provided mapping
function.
|