|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deduced.utilities.WeakList.WeakIterator<E>
E
- the type of element to iterate onpublic static class WeakList.WeakIterator<E>
Class representing an iterator on a weak list. This iterator will check that objects haven't been garbage collected before returning the next() value.
Field Summary | |
---|---|
private java.util.Iterator<java.lang.ref.WeakReference<E>> |
iterator
the actual iterator used to browse the list |
private E |
nextValue
the current next value |
Constructor Summary | |
---|---|
WeakList.WeakIterator(java.util.Iterator<java.lang.ref.WeakReference<E>> setIterator)
Constructor |
Method Summary | |
---|---|
private void |
findNextValue()
findNextValue |
boolean |
hasNext()
(non-Javadoc) |
E |
next()
(non-Javadoc) |
void |
remove()
(non-Javadoc) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Iterator<java.lang.ref.WeakReference<E>> iterator
private E nextValue
Constructor Detail |
---|
public WeakList.WeakIterator(java.util.Iterator<java.lang.ref.WeakReference<E>> setIterator)
setIterator
- the actual iterator used to browse the listMethod Detail |
---|
private void findNextValue()
public void remove()
remove
in interface java.util.Iterator<E>
Iterator.remove()
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
Iterator.hasNext()
public E next()
next
in interface java.util.Iterator<E>
Iterator.next()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |