|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.rules.closure.support.AbstractElementGenerator
org.springframework.rules.closure.support.AbstractElementGeneratorWorkflow
org.springframework.rules.closure.support.IteratorTemplate
public class IteratorTemplate
Simple process template that iterates over elements.
Constructor Summary | |
---|---|
IteratorTemplate(Collection collection)
Constructor. |
|
IteratorTemplate(Iterator it)
Constructor. |
Method Summary | |
---|---|
protected void |
doSetup()
Setup the workflow. |
protected Object |
doWork()
|
protected boolean |
hasMoreWork()
|
Methods inherited from class org.springframework.rules.closure.support.AbstractElementGeneratorWorkflow |
---|
doCleanup, processing, run |
Methods inherited from class org.springframework.rules.closure.support.AbstractElementGenerator |
---|
allTrue, anyTrue, findAll, findFirst, findFirst, getWrappedTemplate, isFinished, isRunning, isStopped, reset, runUntil, setCompleted, setRunning, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IteratorTemplate(Collection collection)
collection
- the elements to iterate over.public IteratorTemplate(Iterator it)
it
- Iterator over the elements.Method Detail |
---|
protected void doSetup()
doSetup
in class AbstractElementGeneratorWorkflow
protected boolean hasMoreWork()
hasMoreWork
in class AbstractElementGeneratorWorkflow
true
if more work has to be done.protected Object doWork()
doWork
in class AbstractElementGeneratorWorkflow
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |