Interface ResettableIterator

All Superinterfaces:
Iterator
All Known Implementing Classes:
EmptyIterator, EmptyMapIterator

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

This interface allows an iterator to be repeatedly reused.

Since:
Commons Collections 3.0
Version:
$Revision$ $Date$
Author:
Stephen Colebourne
  • Method Summary

    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

    forEachRemaining, hasNext, next, remove
  • Method Details

    • reset

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