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