Package com.google.common.collect
Class MapMakerInternalMap.HashIterator<T>
java.lang.Object
com.google.common.collect.MapMakerInternalMap.HashIterator<T>
- All Implemented Interfaces:
Iterator<T>
- Direct Known Subclasses:
MapMakerInternalMap.EntryIterator
,MapMakerInternalMap.KeyIterator
,MapMakerInternalMap.ValueIterator
- Enclosing class:
MapMakerInternalMap<K,
V, E extends MapMakerInternalMap.InternalEntry<K, V, E>, S extends MapMakerInternalMap.Segment<K, V, E, S>>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) MapMakerInternalMap.Segment
<K, V, E, S> (package private) AtomicReferenceArray
<E> (package private) MapMakerInternalMap<K,
V, E, S>.WriteThroughEntry (package private) E
(package private) MapMakerInternalMap<K,
V, E, S>.WriteThroughEntry (package private) int
(package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final void
advance()
(package private) boolean
Advances to the given entry.boolean
hasNext()
abstract T
next()
(package private) MapMakerInternalMap<K,
V, E, S>.WriteThroughEntry (package private) boolean
Finds the next entry in the current chain.(package private) boolean
Finds the next entry in the current table.void
remove()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
nextSegmentIndex
int nextSegmentIndex -
nextTableIndex
int nextTableIndex -
currentSegment
@CheckForNull MapMakerInternalMap.Segment<K,V, currentSegmentE extends MapMakerInternalMap.InternalEntry<K, V, E>, S extends MapMakerInternalMap.Segment<K, V, E, S>> -
currentTable
-
nextEntry
-
nextExternal
@CheckForNull MapMakerInternalMap<K,V, nextExternalE extends MapMakerInternalMap.InternalEntry<K, V, E>, S extends MapMakerInternalMap.Segment<K, V, E, S>>.WriteThroughEntry -
lastReturned
@CheckForNull MapMakerInternalMap<K,V, lastReturnedE extends MapMakerInternalMap.InternalEntry<K, V, E>, S extends MapMakerInternalMap.Segment<K, V, E, S>>.WriteThroughEntry
-
-
Constructor Details
-
HashIterator
HashIterator()
-
-
Method Details
-
next
-
advance
final void advance() -
nextInChain
boolean nextInChain()Finds the next entry in the current chain. Returnstrue
if an entry was found. -
nextInTable
boolean nextInTable()Finds the next entry in the current table. Returnstrue
if an entry was found. -
advanceTo
Advances to the given entry. Returnstrue
if the entry was valid,false
if it should be skipped. -
hasNext
public boolean hasNext() -
nextEntry
MapMakerInternalMap<K,V, nextEntry()E, S>.WriteThroughEntry -
remove
public void remove()
-