public class DoWhileNullaryProcedure extends AbstractLoopNullaryProcedure
NullaryProcedure
implementation of a while loop. Given a NullaryPredicate
c and an NullaryProcedure
p, runs
do { p.run(); } while(c.test())
.Constructor and Description |
---|
DoWhileNullaryProcedure(NullaryProcedure action,
NullaryPredicate condition)
Create a new DoWhileNullaryProcedure.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Execute this procedure.
|
String |
toString() |
equals, getAction, getCondition, hashCode, hashCode
public DoWhileNullaryProcedure(NullaryProcedure action, NullaryPredicate condition)
action
- to docondition
- while truepublic final void run()
public String toString()
toString
in class AbstractLoopNullaryProcedure
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.