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