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:
java.io.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 java.lang.Object implements BinaryFunction<L,R,T>, java.io.Serializable
Type-remembering helper.
-
-
Field Summary
Fields Modifier and Type Field Description private UnaryFunction<? super X,? extends T>followingThe following function.private BinaryFunction<? super L,? super R,? extends X>precedingThe preceding function.private static longserialVersionUIDserialVersionUID declaration.
-
Constructor Summary
Constructors Modifier Constructor Description privateHelper(BinaryFunction<? super L,? super R,? extends X> preceding, UnaryFunction<? super X,? extends T> following)Create a new Helper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tevaluate(L left, R right)Evaluate this function.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
serialVersionUID declaration.- See Also:
- Constant Field Values
-
preceding
private BinaryFunction<? super L,? super R,? extends X> preceding
The preceding function.
-
following
private UnaryFunction<? super X,? extends T> following
The following function.
-
-
Constructor Detail
-
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 Detail
-
evaluate
public T evaluate(L left, R right)
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
-
-