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 Details

    • serialVersionUID

      private static final long serialVersionUID
      serialVersionUID declaration.
      See Also:
    • 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 Details

    • Helper

      private Helper(BinaryFunction<? super L, ? super R, ? extends X> preceding, UnaryFunction<? super X, ? extends T> following)
      Create a new Helper.
      Parameters:
      preceding - BinaryFunction
      following - UnaryFunction
  • Method Details

    • evaluate

      public T evaluate(L left, R right)
      Evaluate this function.
      Specified by:
      evaluate in interface BinaryFunction<X,L,R>
      Parameters:
      left - the L element of the ordered pair of arguments
      right - the R element of the ordered pair of arguments
      Returns:
      the T result of this function for the given arguments