Package ghidra.trace.util

# Interface EnumeratingIterator<T>

All Superinterfaces:
  `Iterator<T>`

All Known Implementing Classes:
  `EnumeratingIterator.WrappingEnumeratingIterator`

public interface EnumeratingIterator<T> extends Iterator<T>

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Interface
  Description
  `static class`
  `EnumeratingIterator.WrappingEnumeratingIterator<T>`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static <T> EnumeratingIterator<T>`
  `castOrWrap(Iterator<T> it)`
  `int`
  `getIndex()`
  Get the index of the last element returned by `Iterator.next()`.

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

  `forEachRemaining, hasNext, next, remove`

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