类 LoopTool.SyncedIterator

java.lang.Object
org.apache.velocity.tools.generic.LoopTool.SyncedIterator
封闭类:
LoopTool

public static class LoopTool.SyncedIterator extends Object
Simple wrapper to make it easy to keep an arbitray Iterator in sync with a LoopTool.ManagedIterator.
  • 字段详细资料

    • iterator

      private Iterator iterator
    • current

      private Object current
  • 构造器详细资料

    • SyncedIterator

      public SyncedIterator(Iterator iterator)
  • 方法详细资料

    • 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 to null.
    • get

      public Object get()
      Returns the currently parallel value, if any.