Class TransformedFunction.Helper<X,​T>

  • Type Parameters:
    X - the adapted function argument type
    All Implemented Interfaces:
    java.io.Serializable, Function<T>, Functor, NullaryFunctor
    Enclosing class:
    TransformedFunction<T>

    private static final class TransformedFunction.Helper<X,​T>
    extends java.lang.Object
    implements Function<T>, java.io.Serializable
    Type-remembering helper.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Helper​(Function<? 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
      T evaluate()
      Evaluate this function.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • serialVersionUID

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

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

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

      • Helper

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

      • evaluate

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