Interface ResettableIterator<E>

Type Parameters:
E - the type of elements returned by this iterator.
All Superinterfaces:
Iterator<E>
All Known Subinterfaces:
ResettableListIterator<E>
All Known Implementing Classes:
AbstractDualBidiMap.BidiMapIterator, AbstractEmptyMapIterator, AbstractLinkedMap.EntrySetIterator, AbstractLinkedMap.KeySetIterator, AbstractLinkedMap.LinkMapIterator, AbstractLinkedMap.ValuesIterator, AbstractSortedMapDecorator.SortedMapIterator, ArrayIterator, ArrayListIterator, DualTreeBidiMap.BidiOrderedMapIterator, EmptyIterator, EmptyListIterator, EmptyMapIterator, EmptyOrderedIterator, EmptyOrderedMapIterator, EntrySetMapIterator, EntrySetToMapIteratorAdapter, ListIteratorWrapper, LoopingIterator, LoopingListIterator, ObjectArrayIterator, ObjectArrayListIterator, ReverseListIterator, SingletonIterator, SingletonListIterator

public interface ResettableIterator<E> extends Iterator<E>
Defines an iterator that can be reset back to an initial state.

This interface allows an iterator to be repeatedly reused.

Since:
3.0
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    Resets the iterator back to the position at which the iterator was created.

    Methods inherited from interface java.util.Iterator Link icon

    forEachRemaining, hasNext, next, remove
  • Method Details Link icon

    • reset Link icon

      void reset()
      Resets the iterator back to the position at which the iterator was created.