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