Class 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.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Helper​(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
      T evaluate​(L left, R right)
      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 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 - BinaryFunction
        following - UnaryFunction
    • Method Detail

      • 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