public static class BiFunction.Util extends 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. |
static <T,U,R> BiFunction<U,T,R> |
reverse(BiFunction<? super T,? super U,? extends R> function)
Returns a
BiFunction that reverses the input arguments order
of the specified BiFunction. |
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 f1V - the type of the result of composed function f2f1 - the BiFunction which is called firstf2 - the function for transform BiFunction f1 result to the type VNullPointerException - if f1 or f2 or result of BiFunction f1 is nullpublic static <T,U,R> BiFunction<U,T,R> reverse(BiFunction<? super T,? super U,? extends R> function)
BiFunction that reverses the input arguments order
of the specified BiFunction.T - the type of the first argument of the given function
and the second argument of the reversed functionU - the type of the second argument of the given function
and the first argument of the reversed functionR - the type of the result of the given function
and of the reversed functionfunction - the BiFunction to reverse argumentsNullPointerException - if function is nullCopyright © 2017. All rights reserved.