Package ghidra.trace.util
Class EnumeratingIterator.WrappingEnumeratingIterator<T>
java.lang.Object
ghidra.trace.util.EnumeratingIterator.WrappingEnumeratingIterator<T>
- All Implemented Interfaces:
EnumeratingIterator<T>,Iterator<T>
- Enclosing interface:
EnumeratingIterator<T>
public static class EnumeratingIterator.WrappingEnumeratingIterator<T>
extends Object
implements EnumeratingIterator<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface ghidra.trace.util.EnumeratingIterator
EnumeratingIterator.WrappingEnumeratingIterator<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()Get the index of the last element returned byIterator.next().booleanhasNext()next()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
it
-
index
protected int index
-
-
Constructor Details
-
WrappingEnumeratingIterator
-
-
Method Details
-
getIndex
public int getIndex()Description copied from interface:EnumeratingIteratorGet the index of the last element returned byIterator.next().- Specified by:
getIndexin interfaceEnumeratingIterator<T>- Returns:
- the index of the last iterated element.
-
hasNext
public boolean hasNext() -
next
-