Interface EnumeratingIterator<T>

All Superinterfaces:
Iterator<T>
All Known Implementing Classes:
EnumeratingIterator.WrappingEnumeratingIterator

public interface EnumeratingIterator<T> extends Iterator<T>
  • Method Details

    • castOrWrap

      static <T> EnumeratingIterator<T> castOrWrap(Iterator<T> it)
    • getIndex

      int getIndex()
      Get the index of the last element returned by Iterator.next().
      Returns:
      the index of the last iterated element.