Package org.plumelib.util
Class ArrayMap.ArrayMapIterator
java.lang.Object
org.plumelib.util.ArrayMap.ArrayMapIterator
- Direct Known Subclasses:
ArrayMap.EntryIterator,ArrayMap.KeyIterator,ArrayMap.ValueIterator
An iterator over the ArrayMap.
-
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
-
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
-
ArrayMapIterator
@SideEffectFree ArrayMapIterator()Creates a new ArrayMapIterator.
-
-
Method Details
-
hasNext
@Pure public final boolean hasNext()Returns true if this has another element.- Returns:
- true if this has another element
-
remove
public final void remove()Removes the previously-returned element.
-