Class TransformedProcedure.Helper<X>

  • Type Parameters:
    X - the adapted function argument type.
    All Implemented Interfaces:
    java.io.Serializable, java.lang.Runnable, Functor, NullaryFunctor, Procedure
    Enclosing class:
    TransformedProcedure

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

      Constructors 
      Modifier Constructor Description
      private Helper​(Function<? 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()
      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 Function<? extends X> function
        The adapted function.
      • procedure

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

      • Helper

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

      • run

        public void run()
        Execute this procedure.
        Specified by:
        run in interface Procedure
        Specified by:
        run in interface java.lang.Runnable