|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.velocity.tools.generic.LoopTool.SyncedIterator
public static class LoopTool.SyncedIterator
Simple wrapper to make it easy to keep an arbitray Iterator
in sync with a LoopTool.ManagedIterator
.
Field Summary | |
---|---|
private java.lang.Object |
current
|
private java.util.Iterator |
iterator
|
Constructor Summary | |
---|---|
LoopTool.SyncedIterator(java.util.Iterator iterator)
|
Method Summary | |
---|---|
java.lang.Object |
get()
Returns the currently parallel value, if any. |
void |
shift()
If the sync'ed iterator has any more values, this sets the next() value as the current one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Iterator iterator
private java.lang.Object current
Constructor Detail |
---|
public LoopTool.SyncedIterator(java.util.Iterator iterator)
Method Detail |
---|
public void shift()
null
.
public java.lang.Object get()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |