Package org.plumelib.util
Class IdentityArraySet.ArraySetIterator
java.lang.Object
org.plumelib.util.IdentityArraySet.ArraySetIterator
- All Implemented Interfaces:
Iterator<E>
- Enclosing class:
- IdentityArraySet<E extends @UnknownSignedness Object>
An iterator over the IdentityArraySet.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @org.checkerframework.checker.index.qual.NonNegative intThe first unread index; the index of the next value to return.(package private) intThe modification count when the iterator is created, for fail-fast.(package private) booleanTrue if remove() has been called since the last call to next(). -
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
index
@org.checkerframework.checker.index.qual.NonNegative int indexThe first unread index; the index of the next value to return. -
removed
boolean removedTrue if remove() has been called since the last call to next(). -
initialSizeModificationCount
int initialSizeModificationCountThe modification count when the iterator is created, for fail-fast.
-
-
Constructor Details
-
ArraySetIterator
@SideEffectFree ArraySetIterator()Creates a new ArraySetIterator.
-
-
Method Details
-
hasNext
@Pure public final boolean hasNext()Returns true if this has another element. -
next
-
remove
public final void remove()Removes the previously-returned element.
-