L - the left argument type.R - the right argument type.T - the returned value type.public class CompositeBinaryFunction<L,R,T> extends Object implements BinaryFunction<L,R,T>
BinaryFunction composed of
one binary function, f, and two
functions, g and h,
evaluating the ordered parameters x, y
to f(g(x),h(y)).| Constructor and Description |
|---|
CompositeBinaryFunction(BinaryFunction<? super G,? super H,? extends T> f,
Function<? super L,? extends G> g,
Function<? super R,? extends H> h)
Create a new CompositeBinaryFunction.
|
public CompositeBinaryFunction(BinaryFunction<? super G,? super H,? extends T> f, Function<? super L,? extends G> g, Function<? super R,? extends H> h)
G - the adapted function left argument type.H - the adapted function right argument type.f - BinaryFunction to receive (output(g), output(h))g - left Functionh - right Functionpublic T evaluate(L left, R right)
evaluate in interface BinaryFunction<L,R,T>left - the L element of the ordered pair of argumentsright - the R element of the ordered pair of argumentsCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.