default <V> BiFunctionWithException<T,U,V,E> |
BiFunctionWithException.andThen(FunctionWithException<? super R,? extends V,? extends E> after) |
Returns a composed FunctionWithException that first applies this
FunctionWithException to its input, and then applies the
after FunctionWithException to the result.
|
default <V> FunctionWithException<T,V,E> |
FunctionWithException.andThen(FunctionWithException<? super R,? extends V,? extends E> after) |
Returns a composed function that first applies this function to its input,
and then applies the after function to the result.
|
static <T,U,R,E extends Exception> BiFunctionWithException<T,U,R,E> |
FunctionWithException.asBiFunction(FunctionWithException<T,R,E> function) |
Converts a FunctionWithException to a
BiFunctionWithException .
|
static <T,R,E extends Exception> Callable<R> |
FunctionWithException.asCallable(FunctionWithException<T,R,E> function,
T t) |
Converts a FunctionWithException to a Callable .
|
static <T,R,E extends Exception> ConsumerWithException<T,E> |
FunctionWithException.asConsumer(FunctionWithException<T,R,E> function) |
Converts a FunctionWithException to a ConsumerWithException .
|
static <T,R,E extends Exception> RunnableWithException<E> |
FunctionWithException.asRunnable(FunctionWithException<T,R,E> function,
T t) |
Converts a FunctionWithException to a RunnableWithException .
|
static <T,R,E extends Exception> SupplierWithException<R,E> |
FunctionWithException.asSupplier(FunctionWithException<T,R,E> function,
T t) |
Converts a FunctionWithException to a SupplierWithException .
|
static <I,O> org.apache.commons.collections4.Transformer<I,O> |
CommonsCollections4Helper.asTransformer(FunctionWithException<I,O,?> function) |
|
default <V> FunctionWithException<V,R,E> |
FunctionWithException.compose(FunctionWithException<? super V,? extends T,? extends E> before) |
Returns a composed function that first applies the before function to
its input, and then applies this function to the result.
|
static <T,R,E extends Exception> Function<T,R> |
FunctionWithException.ignored(FunctionWithException<T,R,E> function) |
Converts a FunctionWithException to a lifted Function
returning null in case of exception.
|
static <T,R,E extends Exception> Function<T,R> |
FunctionWithException.ignored(FunctionWithException<T,R,E> function,
R defaultValue) |
Converts a FunctionWithException to a lifted Function
returning a default value in case of exception.
|
static <T,R,E extends Exception> Function<T,Optional<R>> |
FunctionWithException.lifted(FunctionWithException<T,R,E> function) |
Converts a FunctionWithException to a lifted Function using
Optional as return value.
|
static <T,R,E extends Exception> Function<T,CompletionStage<R>> |
FunctionWithException.staged(FunctionWithException<T,R,E> function) |
Convert this FunctionWithException to a lifted Function
return CompletionStage as return value.
|
static <T,R,E extends Exception> Function<T,R> |
FunctionWithException.unchecked(FunctionWithException<T,R,E> function) |
Converts a FunctionWithException to a Function that convert
exception to RuntimeException .
|
static <T,R,E extends Exception> Function<T,R> |
FunctionWithException.unchecked(FunctionWithException<T,R,E> function,
Function<Exception,RuntimeException> exceptionMapper) |
Converts a FunctionWithException to a Function that wraps
exception to RuntimeException by using the provided mapping function.
|