public class DoWhileProcedure extends AbstractLoopProcedure
Procedure implementation of a while loop. Given a Predicate
c and an Procedure p, runs
do { p.run(); } while(c.test()).
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if all the
underlying functors are. Attempts to serialize
an instance whose delegates are not all
Serializable will result in an exception.
| Constructor and Description |
|---|
DoWhileProcedure(Procedure action,
Predicate condition)
Create a new DoWhileProcedure.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Execute this procedure.
|
String |
toString() |
equals, getAction, getCondition, hashCode, hashCodepublic DoWhileProcedure(Procedure action, Predicate condition)
action - to docondition - while truepublic final void run()
public String toString()
toString in class AbstractLoopProcedureCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.