static <T,E extends Exception> ToLongFunction<T> |
ToLongFunctionWithException.ignored(ToLongFunctionWithException<T,E> function) |
Converts a ToLongFunctionWithException to a lifted
ToLongFunction returning 0 in case of exception.
|
static <T,E extends Exception> ToLongFunction<T> |
ToLongFunctionWithException.ignored(ToLongFunctionWithException<T,E> function,
long defaultValue) |
Converts a ToLongFunctionWithException to a lifted
ToLongFunction returning a default value in case of exception.
|
static <T,E extends Exception> ToLongFunction<T> |
ToLongFunctionWithException.lifted(ToLongFunctionWithException<T,E> function) |
Converts a ToLongFunctionWithException to a lifted
ToLongFunction returning 0 in case of exception.
|
static <T,E extends Exception> ToLongFunction<T> |
ToLongFunctionWithException.unchecked(ToLongFunctionWithException<T,E> function) |
Converts a ToLongFunctionException to a ToLongFunction that
wraps exception to RuntimeException .
|
static <T,E extends Exception> ToLongFunction<T> |
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.
|