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