Class TransformedBinaryProcedure.Helper<X,L,R>

java.lang.Object
org.apache.commons.functor.core.composite.TransformedBinaryProcedure.Helper<X,L,R>
Type Parameters:
X - the wrapped procedure argument.
All Implemented Interfaces:
Serializable, BinaryFunctor<L,R>, BinaryProcedure<L,R>, Functor
Enclosing class:
TransformedBinaryProcedure<L,R>

private static final class TransformedBinaryProcedure.Helper<X,L,R> extends Object implements BinaryProcedure<L,R>, Serializable
Type-remembering helper.
Version:
$Revision$ $Date$
  • Field Details

    • serialVersionUID

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

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

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

    • 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 Details

    • 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