public abstract class AbstractLoopProcedure extends Object implements Procedure, Serializable
WhileDoProcedure and DoWhileProcedure
used to implement loop procedures.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLoopProcedure(Predicate condition,
Procedure action)
Create a new AbstractLoopProcedure.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
protected Procedure |
getAction()
Get the action.
|
protected Predicate |
getCondition()
Get the condition.
|
int |
hashCode() |
protected int |
hashCode(int hash)
Create a hashCode by manipulating an input hashCode and factoring in instance state.
|
String |
toString() |
protected AbstractLoopProcedure(Predicate condition, Procedure action)
condition - while true, repeataction - loop bodyprotected int hashCode(int hash)
hash - incoming hashCodeprotected final Predicate getCondition()
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.