Package com.complexible.common.collect

# 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

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from interface com.complexible.common.base.CloseableIterator

  `CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T>`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `reset()`
  Resets the iterator to the beginning so the following `Iterator.next()` call will return the first element in this iteration.

  ### Methods inherited from interface com.complexible.common.base.CloseableIterator

  `close`

  ### Methods inherited from interface java.util.Iterator

  `forEachRemaining, hasNext, next, remove`

- ## 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.