public static class BiFunction.Util
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T,U,R,V> BiFunction<T,U,V> |
andThen(BiFunction<? super T,? super U,? extends R> f1,
Function<? super R,? extends V> f2)
Composes
BiFunction calls. |
public static <T,U,R,V> BiFunction<T,U,V> andThen(BiFunction<? super T,? super U,? extends R> f1, Function<? super R,? extends V> f2)
BiFunction
calls.
f2.apply(f1.apply(t, u))
T
- the type of the first argumentU
- the type of the second argumentR
- the type of the result of the BiFunction f1
V
- the type of the result of composed function f2
f1
- the BiFunction
which is called firstf2
- the function for transform BiFunction f1
result to the type V
java.lang.NullPointerException
- if f1
or f2
or result of BiFunction f1
is null