Package com.google.common.collect
Class MapMakerInternalMap.HashIterator<T>
- java.lang.Object
-
- com.google.common.collect.MapMakerInternalMap.HashIterator<T>
-
- All Implemented Interfaces:
java.util.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>>
abstract class MapMakerInternalMap.HashIterator<T> extends java.lang.Object implements java.util.Iterator<T>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) MapMakerInternalMap.Segment<K,V,E,S>currentSegment(package private) java.util.concurrent.atomic.AtomicReferenceArray<E>currentTable(package private) MapMakerInternalMap.WriteThroughEntrylastReturned(package private) EnextEntry(package private) MapMakerInternalMap.WriteThroughEntrynextExternal(package private) intnextSegmentIndex(package private) intnextTableIndex
-
Constructor Summary
Constructors Constructor Description HashIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) voidadvance()(package private) booleanadvanceTo(E entry)Advances to the given entry.booleanhasNext()abstract Tnext()(package private) MapMakerInternalMap.WriteThroughEntrynextEntry()(package private) booleannextInChain()Finds the next entry in the current chain.(package private) booleannextInTable()Finds the next entry in the current table.voidremove()
-
-
-
Field Detail
-
nextSegmentIndex
int nextSegmentIndex
-
nextTableIndex
int nextTableIndex
-
currentSegment
MapMakerInternalMap.Segment<K,V,E extends MapMakerInternalMap.InternalEntry<K,V,E>,S extends MapMakerInternalMap.Segment<K,V,E,S>> currentSegment
-
currentTable
java.util.concurrent.atomic.AtomicReferenceArray<E extends MapMakerInternalMap.InternalEntry<K,V,E>> currentTable
-
nextEntry
E extends MapMakerInternalMap.InternalEntry<K,V,E> nextEntry
-
nextExternal
MapMakerInternalMap.WriteThroughEntry nextExternal
-
lastReturned
MapMakerInternalMap.WriteThroughEntry lastReturned
-
-
Method Detail
-
advance
final void advance()
-
nextInChain
boolean nextInChain()
Finds the next entry in the current chain. Returnstrueif an entry was found.
-
nextInTable
boolean nextInTable()
Finds the next entry in the current table. Returnstrueif an entry was found.
-
advanceTo
boolean advanceTo(E entry)
Advances to the given entry. Returnstrueif the entry was valid,falseif it should be skipped.
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<T>
-
nextEntry
MapMakerInternalMap.WriteThroughEntry nextEntry()
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<T>
-
-