Class BinaryCompositeBinaryFunction.Helper<G,H,L,R,T>
java.lang.Object
org.apache.commons.functor.core.composite.BinaryCompositeBinaryFunction.Helper<G,H,L,R,T>
- Type Parameters:
G- the function left argument type.H- the function right argument type.
- All Implemented Interfaces:
Serializable, BinaryFunction<L,R, T>, BinaryFunctor<L, R>, Functor
- Enclosing class:
BinaryCompositeBinaryFunction<L,R, T>
private static class BinaryCompositeBinaryFunction.Helper<G,H,L,R,T>
extends Object
implements BinaryFunction<L,R,T>, Serializable
Type-remembering Helper.
- Version:
- $Revision$ $Date$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BinaryFunction<? super G, ? super H, ? extends T> Global evaluator.private BinaryFunction<? super L, ? super R, ? extends G> This function evaluation will be the left argument of main evaluator.private BinaryFunction<? super L, ? super R, ? extends H> This function evaluation will be the right argument of main evaluator.private static final longserialVersionUID declaration. -
Constructor Summary
ConstructorsConstructorDescriptionHelper(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 Helper. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDserialVersionUID declaration.- See Also:
-
f
Global evaluator. -
g
This function evaluation will be the left argument of main evaluator. -
h
This function evaluation will be the right argument of main evaluator.
-
-
Constructor Details
-
Helper
public Helper(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 Helper.- Parameters:
f- final BinaryFunction to evaluateg- left preceding BinaryFunctionh- right preceding BinaryFunction
-
-
Method Details
-
evaluate
Evaluate this function.- Specified by:
evaluatein interfaceBinaryFunction<G,H, L> - Parameters:
left- the L element of the ordered pair of argumentsright- the R element of the ordered pair of arguments- Returns:
- the T result of this function for the given arguments
-