static <E extends Exception> LongSupplier |
LongSupplierWithException.ignored(LongSupplierWithException<E> supplier) |
Converts a LongSupplierWithException to a lifted LongSupplier
returning 0 in case of exception.
|
static <E extends Exception> LongSupplier |
LongSupplierWithException.ignored(LongSupplierWithException<E> supplier,
long defaultValue) |
Converts a LongSupplierWithException to a lifted LongSupplier
returning a default value in case of exception.
|
static <E extends Exception> LongSupplier |
LongSupplierWithException.lifted(LongSupplierWithException<E> supplier) |
Converts a LongSupplierWithException to a lifted LongSupplier
returning 0 in case of exception.
|
static <E extends Exception> LongSupplier |
LongSupplierWithException.unchecked(LongSupplierWithException<E> supplier) |
Converts a LongSupplierWithException to a LongSupplier that
wraps exception to RuntimeException .
|
static <E extends Exception> LongSupplier |
LongSupplierWithException.unchecked(LongSupplierWithException<E> supplier,
Function<Exception,RuntimeException> exceptionMapper) |
Converts a LongSupplierWithException to a LongSupplier that
wraps exception to RuntimeException by using the provided mapping
function.
|