L - the function left argument type.R - the function right argument type.T - the function returned value type.public class BinaryCompositeBinaryFunction<L,R,T> extends Object implements BinaryFunction<L,R,T>, Serializable
BinaryFunction composed of
three binary functions, f, g and h,
evaluating the ordered parameters x, y
to f(g(x,y),h(x,y)).
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if all the
underlying functors are. Attempts to serialize
an instance whose delegates are not all
Serializable will result in an exception.
| Constructor and Description |
|---|
BinaryCompositeBinaryFunction(BinaryFunction<? super G,? super H,? extends T> f,
BinaryFunction<? super L,? super R,? extends G> g,
BinaryFunction<? super L,? super R,? extends H> h)
Create a new BinaryCompositeBinaryFunction.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(BinaryCompositeBinaryFunction<?,?,?> that)
Learn whether another BinaryCompositeBinaryFunction is equal to this.
|
boolean |
equals(Object that) |
T |
evaluate(L left,
R right)
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
public BinaryCompositeBinaryFunction(BinaryFunction<? super G,? super H,? extends T> f, BinaryFunction<? super L,? super R,? extends G> g, BinaryFunction<? super L,? super R,? extends H> h)
G - the main function left argument type.H - the main function right argument type.f - final BinaryFunction to evaluateg - left preceding BinaryFunctionh - right preceding BinaryFunctionpublic final 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 argumentspublic final boolean equals(BinaryCompositeBinaryFunction<?,?,?> that)
that - BinaryCompositeBinaryFunction to testCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.