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