Class TransformedBinaryFunction.Helper<X,L,R,T>
java.lang.Object
org.apache.commons.functor.core.composite.TransformedBinaryFunction.Helper<X,L,R,T>
- Type Parameters:
X- the following function left argument.
- All Implemented Interfaces:
Serializable, BinaryFunction<L,R, T>, BinaryFunctor<L, R>, Functor
- Enclosing class:
TransformedBinaryFunction<L,R, T>
private static final class TransformedBinaryFunction.Helper<X,L,R,T>
extends Object
implements BinaryFunction<L,R,T>, Serializable
Type-remembering helper.
- Version:
- $Revision$ $Date$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate UnaryFunction<? super X, ? extends T> The following function.private BinaryFunction<? super L, ? super R, ? extends X> The preceding function.private static final longserialVersionUID declaration. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateHelper(BinaryFunction<? super L, ? super R, ? extends X> preceding, UnaryFunction<? super X, ? extends T> following) Create a new Helper. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDserialVersionUID declaration.- See Also:
-
preceding
The preceding function. -
following
The following function.
-
-
Constructor Details
-
Helper
private Helper(BinaryFunction<? super L, ? super R, ? extends X> preceding, UnaryFunction<? super X, ? extends T> following) Create a new Helper.- Parameters:
preceding- BinaryFunctionfollowing- UnaryFunction
-
-
Method Details
-
evaluate
Evaluate this function.- Specified by:
evaluatein interfaceBinaryFunction<X,L, R> - 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
-