| Modifier and Type | Method | Description |
|---|---|---|
static <E extends Exception> |
DoubleToLongFunctionWithException.failing(Supplier<E> exceptionBuilder) |
Returns a function that always throw exception.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <E extends Exception> |
DoubleToLongFunctionWithException.ignored(DoubleToLongFunctionWithException<E> function) |
Converts a
DoubleToLongFunctionWithException to a lifted
DoubleToLongFunction returning 0 in case of exception. |
static <E extends Exception> |
DoubleToLongFunctionWithException.lifted(DoubleToLongFunctionWithException<E> function) |
Converts a
DoubleToLongFunctionWithException to a lifted
DoubleToLongFunction returning 0 in case of exception. |
static <E extends Exception> |
DoubleToLongFunctionWithException.unchecked(DoubleToLongFunctionWithException<E> function) |
Converts a
DoubleToLongFunctionWithException to a
DoubleToLongFunction that convert exception to
RuntimeException. |
static <E extends Exception> |
DoubleToLongFunctionWithException.unchecked(DoubleToLongFunctionWithException<E> function,
Function<Exception,RuntimeException> exceptionMapper) |
Converts a
DoubleToLongFunctionWithException to a
DoubleToLongFunction that convert exception to
RuntimeException by using the provided mapping function. |
Copyright © 2019. All rights reserved.