Class UnaryCompositeBinaryFunction.Helper<G,H,L,R,T>
java.lang.Object
org.apache.commons.functor.core.composite.UnaryCompositeBinaryFunction.Helper<G,H,L,R,T>
- Type Parameters:
G- the adapted function left argument type.H- the adapted function right argument type.L- the left argument type.R- the right argument type.T- the returned value type.
- All Implemented Interfaces:
Serializable, BinaryFunction<L,R, T>, BinaryFunctor<L, R>, Functor
- Enclosing class:
UnaryCompositeBinaryFunction<L,R, T>
private static class UnaryCompositeBinaryFunction.Helper<G,H,L,R,T>
extends Object
implements BinaryFunction<L,R,T>, Serializable
- Version:
- $Revision$ $Date$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BinaryFunction<? super G, ? super H, ? extends T> The adapted function to receive(output(g), output(h)).private UnaryFunction<? super L, ? extends G> The adapted left function.private UnaryFunction<? super R, ? extends H> The adapted right function.private static final longserialVersionUID declaration. -
Constructor Summary
ConstructorsConstructorDescriptionHelper(BinaryFunction<? super G, ? super H, ? extends T> f, UnaryFunction<? super L, ? extends G> g, UnaryFunction<? super R, ? extends H> h) Create a new Helper. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDserialVersionUID declaration.- See Also:
-
f
The adapted function to receive(output(g), output(h)). -
g
The adapted left function. -
h
The adapted right function.
-
-
Constructor Details
-
Helper
public Helper(BinaryFunction<? super G, ? super H, ? extends T> f, UnaryFunction<? super L, ? extends G> g, UnaryFunction<? super R, ? extends H> h) Create a new Helper.- Parameters:
f- BinaryFunction to receive(output(g), output(h))g- left UnaryFunctionh- right UnaryFunction
-
-
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
-