Interface ResettableIterator<T>

All Superinterfaces:
AutoCloseable, CloseableIterator<T>, Iterator<T>
All Known Subinterfaces:
MarkResetIterator<T>, PeekingSkippingIterator<T>, RestrictedMarkResetIterator<T>, SkippingIterator<T>
All Known Implementing Classes:
AbstractSkippingIterator, DelegatingSkippingIterator, MarkResetSkippingIterator, SpoolingMarkResetIterator

public interface ResettableIterator<T> extends CloseableIterator<T>

Iterator which can be reset to the first element.

Since:
3.0
Version:
3.0
Author:
Pavel Klinov
  • Method Details

    • reset

      void reset()
      Resets the iterator to the beginning so the following Iterator.next() call will return the first element in this iteration.