Interface ResettableIterator<E>

All Superinterfaces:
Iterator<E>
All Known Subinterfaces:
QueueConsumers<T>
All Known Implementing Classes:
ArrayResettableIterator, MultiResettableIterator, QueueConsumersImpl, RepeatableIteratorWrapper, UpdatableIterator

public interface ResettableIterator<E> extends Iterator<E>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Resets the iterator so that you can iterate over all elements from your current position.

    Methods inherited from interface java.util.Iterator

    forEachRemaining, hasNext, next, remove
  • Method Details

    • reset

      void reset()
      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.