Class RepeatableIteratorWrapper<E>

java.lang.Object
org.apache.activemq.artemis.utils.collections.RepeatableIteratorWrapper<E>
All Implemented Interfaces:
Iterator<E>, RepeatableIterator<E>, ResettableIterator<E>

public class RepeatableIteratorWrapper<E> extends Object implements RepeatableIterator<E>, ResettableIterator<E>
  • Constructor Details

  • Method Details

    • repeat

      public void repeat()
      Description copied from interface: RepeatableIterator
      If the current value should repeat.
      Specified by:
      repeat in interface RepeatableIterator<E>
    • removed

      public void removed(E removed)
      Specified by:
      removed in interface RepeatableIterator<E>
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<E>
    • next

      public E next()
      Specified by:
      next in interface Iterator<E>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<E>
    • forEachRemaining

      public void forEachRemaining(Consumer<? super E> action)
      Specified by:
      forEachRemaining in interface Iterator<E>
    • reset

      public void reset()
      Description copied from interface: ResettableIterator
      Resets the iterator so that you can iterate over all elements from your current position. Your current position (when reached again) signals the end of iteration as if the collection is circular.
      Specified by:
      reset in interface ResettableIterator<E>