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