E
- the element type iterated by this iterator@NotThreadSafe public abstract static class WeakEntity.CleaningIterator<E> extends Object implements Iterator<E>, Iterable<E>
WeakEntity
s.
Before iterating, this method makes sure WeakEntity.isNull()
returns false
. In the case that
it is true
, the iterator removes that entry from the collection being iterated.
This iterator is not shareable between concurrent. It is designed for single-threaded iteration. The changes made in this iterator do not necessarily reflect to the changes to different iterators of the same collection. This will only become a problem in concurrent iteration, depending on the iterator implementation, as specified by the collection class.
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
This method also advances the iterator index
|
Iterator<E> |
iterator() |
E |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
forEach, spliterator
public boolean hasNext()
Copyright © 2016. All rights reserved.