public final class BiFunctions
extends java.lang.Object
BiFunction
interface.Modifier and Type | Method and Description |
---|---|
static <R,T,U,V> BiFunction<T,U,V> |
andThen(BiFunction<? super T,? super U,? extends R> this_,
Function<? super R,? extends V> after)
Returns a composed function that first applies the
this_ function to
its inputs, and then applies the after function to the result. |
public static <R,T,U,V> BiFunction<T,U,V> andThen(BiFunction<? super T,? super U,? extends R> this_, Function<? super R,? extends V> after)
this_
function to
its inputs, and then applies the after
function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.R
- the type of the result of the this_
function and the type of the input of the after
function.T
- the type of the first argument to the this_
functionU
- the type of the second argument to the this_
functionV
- the type of output of the after
function, and of the
composed functionthis_
- the BiFunction
to be applied first.after
- the function to apply after the this_
function is appliedthis_
function and then
applies the after
functionjava.lang.NullPointerException
- if this_
is nulljava.lang.NullPointerException
- if after is null