Class LoopTool.SyncedIterator
java.lang.Object
org.apache.velocity.tools.generic.LoopTool.SyncedIterator
- Enclosing class:
LoopTool
Simple wrapper to make it easy to keep an arbitray Iterator
in sync with a
LoopTool.ManagedIterator.- Version:
- $Id: LoopTool.java 590893 2007-11-01 04:40:21Z nbubna $
- Author:
- Nathan Bubna
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SyncedIterator
-
-
Method Details
-
shift
public void shift()If the sync'ed iterator has any more values, this sets the next() value as the current one. If there are no more values, this sets the current one tonull. -
get
- Returns:
- the currently parallel value, if any.
-