Class TransformedBinaryProcedure.Helper<X,​L,​R>

  • Type Parameters:
    X - the wrapped procedure argument.
    All Implemented Interfaces:
    java.io.Serializable, BinaryFunctor<L,​R>, BinaryProcedure<L,​R>, Functor
    Enclosing class:
    TransformedBinaryProcedure<L,​R>

    private static final class TransformedBinaryProcedure.Helper<X,​L,​R>
    extends java.lang.Object
    implements BinaryProcedure<L,​R>, java.io.Serializable
    Type-remembering helper.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Helper​(BinaryFunction<? super L,​? super R,​? extends X> function, UnaryProcedure<? super X> procedure)
      Create a new Helper.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run​(L left, R right)
      Execute this procedure.
      • 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
      • function

        private BinaryFunction<? super L,​? super R,​? extends X> function
        The wrapped function.
      • procedure

        private UnaryProcedure<? super X> procedure
        The wrapped procedure.
    • Constructor Detail

      • Helper

        private Helper​(BinaryFunction<? super L,​? super R,​? extends X> function,
                       UnaryProcedure<? super X> procedure)
        Create a new Helper.
        Parameters:
        function - BinaryFunction
        procedure - UnaryFunction
    • Method Detail

      • run

        public void run​(L left,
                        R right)
        Execute this procedure.
        Specified by:
        run in interface BinaryProcedure<X,​L>
        Parameters:
        left - the L element of the ordered pair of arguments
        right - the R element of the ordered pair of arguments