Class DoWhile

java.lang.Object
org.apache.commons.functor.core.algorithm.PredicatedLoop
org.apache.commons.functor.core.algorithm.DoWhile
All Implemented Interfaces:
Serializable, Runnable, Functor, NullaryFunctor, Procedure

public class DoWhile extends PredicatedLoop
Do-while algorithm (test after).
Version:
$Revision$ $Date$
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      serialVersionUID declaration.
      See Also:
  • Constructor Details

    • DoWhile

      public DoWhile(Procedure body, Predicate test)
      Create a new DoWhile.
      Parameters:
      body - to execute
      test - whether to keep going
  • Method Details

    • run

      public final void run()
      Execute this procedure.