| Modifier and Type | Method and Description |
|---|---|
static <T,R,V> Function<T,V> |
andThen(Function<? super T,? extends R> f1,
Function<? super R,? extends V> f2)
Compose
Function calls. |
public static <T,R,V> Function<T,V> andThen(Function<? super T,? extends R> f1, Function<? super R,? extends V> f2)
Function calls.
f2.apply(f1.apply(t))
T - the type of the input argument of first functionR - the type of the result of f1 and input argument of f2V - the type of the result of composed function f2f1 - the Function which is called firstf2 - the function for transform Function f1 result to the type VNullPointerException - if f1 or f2 or result of Function f1 is nullCopyright © 2015. All rights reserved.