java.lang.Object
net.i2p.util.ArraySet.ASIterator
- All Implemented Interfaces:
Serializable, Iterator<E>
Modified from CachedIteratorArrayList Iterator implementation for ArraySet.
Field Summary
FieldsModifier and TypeFieldDescription(package private) intIndex of element to be returned by subsequent call to next.(package private) intThe modCount value that the iterator believes that the backing List should have.(package private) intIndex of element returned by most recent call to next or previous.Constructor Summary
ConstructorsMethod Summary
Public MethodsMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
Field Details
cursor
int cursorIndex of element to be returned by subsequent call to next.lastRet
int lastRetIndex of element returned by most recent call to next or previous. Reset to -1 if this element is deleted by a call to remove.expectedModCount
int expectedModCountThe modCount value that the iterator believes that the backing List should have. If this expectation is violated, the iterator has detected concurrent modification.
Constructor Details
ASIterator
private ASIterator()Walks the set's elements.
Method Details
hasNext
next
remove
checkForComodification
final void checkForComodification()Throws if the set changed since the iterator was made.