abstract class MapMakerInternalMap.HashIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
Modifier and Type | Field and Description |
---|---|
(package private) MapMakerInternalMap.Segment<K,V> |
currentSegment |
(package private) java.util.concurrent.atomic.AtomicReferenceArray<MapMakerInternalMap.ReferenceEntry<K,V>> |
currentTable |
(package private) MapMakerInternalMap.WriteThroughEntry |
lastReturned |
(package private) MapMakerInternalMap.ReferenceEntry<K,V> |
nextEntry |
(package private) MapMakerInternalMap.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(MapMakerInternalMap.ReferenceEntry<K,V> entry)
Advances to the given entry.
|
boolean |
hasNext() |
abstract E |
next() |
(package private) MapMakerInternalMap.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
MapMakerInternalMap.Segment<K,V> currentSegment
java.util.concurrent.atomic.AtomicReferenceArray<MapMakerInternalMap.ReferenceEntry<K,V>> currentTable
MapMakerInternalMap.ReferenceEntry<K,V> nextEntry
MapMakerInternalMap.WriteThroughEntry nextExternal
MapMakerInternalMap.WriteThroughEntry lastReturned
final void advance()
boolean nextInChain()
true
if an entry was found.boolean nextInTable()
true
if an entry was found.boolean advanceTo(MapMakerInternalMap.ReferenceEntry<K,V> entry)
true
if the entry was valid, false
if it
should be skipped.public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
MapMakerInternalMap.WriteThroughEntry nextEntry()
public void remove()
remove
in interface java.util.Iterator<E>