T - the type of the first argument to the functionU - the type of the second argument to the functionR - the type of the result of the functionE - the type of exception could be thrown while performing operation@FunctionalInterface
public interface BiFunctionEx<T,U,R,E extends java.lang.Throwable>
FunctionEx.
This is a functional interface
whose functional method is apply(Object, Object).
FunctionEx| Modifier and Type | Method and Description |
|---|---|
default <V> BiFunctionEx<T,U,V,E> |
andThen(FunctionEx<? super R,? extends V,E> after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
R |
apply(T t,
U u)
Applies this function to the given arguments.
|
default <C extends java.lang.Throwable> |
cover(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.util.function.Function<java.lang.Throwable,java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default SupplierEx<R,E> |
fix(T t,
U u) |
default FunctionEx<U,R,E> |
fixLeft(T t)
Build and return FunctionEx interface obtained from the bi-function by fixing first parameter with specified constant value.
|
default FunctionEx<T,R,E> |
fixRight(U u)
Build and return FunctionEx interface obtained from the bi-function by fixing second parameter with specified constant value.
|
default java.util.function.BiFunction<T,U,R> |
unchecked() |
default java.util.function.BiFunction<T,U,R> |
unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.BiFunction<T,U,R> |
unchecked(java.util.function.Function<java.lang.Throwable,java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.BiFunction<T,U,R> |
unchecked(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.BiFunction<T,U,R> |
unchecked(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
R apply(T t, U u) throws E extends java.lang.Throwable
t - the first function argumentu - the second function argumentE extends java.lang.Throwabledefault <V> BiFunctionEx<T,U,V,E> andThen(FunctionEx<? super R,? extends V,E> after)
after function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.V - the type of output of the after function, and of the
composed functionafter - the function to apply after this function is appliedafter functionjava.lang.NullPointerException - if after is nulldefault FunctionEx<T,R,E> fixRight(U u)
u - constant value for fixing second parameterdefault FunctionEx<U,R,E> fixLeft(T t)
t - constant value for fixing first parameterdefault SupplierEx<R,E> fix(T t, U u)
default <C extends java.lang.Throwable> BiFunctionEx<T,U,R,C> cover(java.lang.String exceptionText, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> BiFunctionEx<T,U,R,C> cover(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> BiFunctionEx<T,U,R,C> cover(java.util.function.Supplier<java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> BiFunctionEx<T,U,R,C> cover(java.util.function.Function<java.lang.Throwable,java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default java.util.function.BiFunction<T,U,R> unchecked(java.lang.String exceptionText, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.BiFunction<T,U,R> unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.BiFunction<T,U,R> unchecked(java.util.function.Supplier<java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)