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