|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.data.SoftValueMap.SoftValueEntrySet.SoftValueEntryIterator
protected class SoftValueMap.SoftValueEntrySet.SoftValueEntryIterator
An iterator over the entry set. Iteration is guaranteed to yield sane results; no keys will be null due to cleared references.
Field Summary | |
---|---|
protected SoftValueMap.SoftValue |
_currentSoftValue
The soft value of the entry returned by the last call to next() . |
protected java.util.Iterator |
_innerIterator
The iterator into the storage map's entry set that this iterator corresponds to. |
protected int[] |
_stride
_stride[i] indicates the number of elements to
skip in the iteration of the entry set of
_innerIterator before getting to the
i th entry with a non-cleared value. |
protected int |
_strideIndex
The index into _stride to look at for the next
call to next() . |
protected java.util.LinkedList |
_values
A list of values which provides the strong references needed to guarantee no references to values will be cleared. |
Constructor Summary | |
---|---|
SoftValueMap.SoftValueEntrySet.SoftValueEntryIterator()
|
Method Summary | |
---|---|
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.LinkedList _values
protected java.util.Iterator _innerIterator
protected int[] _stride
_stride[i]
indicates the number of elements to
skip in the iteration of the entry set of
_innerIterator
before getting to the
i
th entry with a non-cleared value.
protected int _strideIndex
_stride
to look at for the next
call to next()
. Also indicates the number of
elements iterated over.
protected SoftValueMap.SoftValue _currentSoftValue
next()
. It must be invalidated if the entry
is removed.
Constructor Detail |
---|
public SoftValueMap.SoftValueEntrySet.SoftValueEntryIterator()
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |