abstract class LocalCache.HashIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
Modifier and Type | Field and Description |
---|---|
(package private) LocalCache.Segment<K,V> |
currentSegment |
(package private) java.util.concurrent.atomic.AtomicReferenceArray<LocalCache.ReferenceEntry<K,V>> |
currentTable |
(package private) LocalCache.WriteThroughEntry |
lastReturned |
(package private) LocalCache.ReferenceEntry<K,V> |
nextEntry |
(package private) LocalCache.WriteThroughEntry |
nextExternal |
(package private) int |
nextSegmentIndex |
(package private) int |
nextTableIndex |
Constructor and Description |
---|
HashIterator() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
advance() |
(package private) boolean |
advanceTo(LocalCache.ReferenceEntry<K,V> entry)
Advances to the given entry.
|
boolean |
hasNext() |
abstract T |
next() |
(package private) LocalCache.WriteThroughEntry |
nextEntry() |
(package private) boolean |
nextInChain()
Finds the next entry in the current chain.
|
(package private) boolean |
nextInTable()
Finds the next entry in the current table.
|
void |
remove() |
int nextSegmentIndex
int nextTableIndex
LocalCache.Segment<K,V> currentSegment
java.util.concurrent.atomic.AtomicReferenceArray<LocalCache.ReferenceEntry<K,V>> currentTable
LocalCache.ReferenceEntry<K,V> nextEntry
LocalCache.WriteThroughEntry nextExternal
LocalCache.WriteThroughEntry lastReturned
final void advance()
boolean nextInChain()
boolean nextInTable()
boolean advanceTo(LocalCache.ReferenceEntry<K,V> entry)
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
LocalCache.WriteThroughEntry nextEntry()
public void remove()
remove
in interface java.util.Iterator<T>