E - the type of elements in this iteratorpublic static class CachedIteratorCollection.CachedIterator<E> extends Object implements Iterator<E>
Static to avoid holding an implicit this$0 reference to the enclosing
collection, which would prevent GC of the collection (and its owning PeerState)
when held in another thread's ThreadLocal after CachedIteratorCollection.clear() is called.
| Constructor and Description |
|---|
CachedIterator(CachedIteratorCollection<E> coll)Create a new CachedIterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean | hasNext()Returns true as long as current Iteration Index Node (itrIndexNode)
is non-null |
E | next()Returns the next node in the iteration |
void | remove()If nextCalled is true (i.e. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingCachedIterator(CachedIteratorCollection<E> coll)
coll - the owning collection