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