static <T> org.apache.commons.collections4.Factory<T> |
CommonsCollections4Helper.asFactory(SupplierWithException<T,?> supplier) |
|
static <T,R,E extends Exception> FunctionWithException<T,R,E> |
SupplierWithException.asFunction(SupplierWithException<R,E> supplier) |
Converts a SupplierWithException to a FunctionWithException .
|
static <T,E extends Exception> Supplier<T> |
SupplierWithException.ignored(SupplierWithException<T,E> supplier) |
Converts a SupplierWithException to a lifted Supplier
returning null in case of exception.
|
static <T,E extends Exception> Supplier<T> |
SupplierWithException.ignored(SupplierWithException<T,E> supplier,
T defaultValue) |
Converts a SupplierWithException to a lifted Supplier
returning a default value in case of exception.
|
static <T,E extends Exception> Supplier<Optional<T>> |
SupplierWithException.lifted(SupplierWithException<T,E> supplier) |
Converts a SupplierWithException to a lifted Supplier using
Optional as return value.
|
static <T,E extends Exception> Supplier<CompletionStage<T>> |
SupplierWithException.staged(SupplierWithException<T,E> supplier) |
Convert this SupplierWithException to a lifted Supplier
return CompletionStage as return value.
|
static <T,E extends Exception> Supplier<T> |
SupplierWithException.unchecked(SupplierWithException<T,E> supplier) |
Converts a SupplierWithException to a Supplier that wraps
exception to RuntimeException .
|
static <T,E extends Exception> Supplier<T> |
SupplierWithException.unchecked(SupplierWithException<T,E> supplier,
Function<Exception,RuntimeException> exceptionMapper) |
Converts a SupplierWithException to a Supplier that wraps
exception to RuntimeException by using the provided mapping function.
|