Class TransformedFunction.Helper<X,T>

java.lang.Object
org.apache.commons.functor.core.composite.TransformedFunction.Helper<X,T>
Type Parameters:
X - the adapted function argument type
All Implemented Interfaces:
Serializable, Function<T>, Functor, NullaryFunctor
Enclosing class:
TransformedFunction<T>

private static final class TransformedFunction.Helper<X,T> extends Object implements Function<T>, Serializable
Type-remembering helper.
Version:
$Revision$ $Date$
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      serialVersionUID declaration.
      See Also:
    • preceding

      private Function<? extends X> preceding
      The preceding function.
    • following

      private UnaryFunction<? super X, ? extends T> following
      The following function.
  • Constructor Details

    • Helper

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

    • evaluate

      public T evaluate()
      Evaluate this function.
      Specified by:
      evaluate in interface Function<X>
      Returns:
      the T result of this evaluation