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