Package com.google.common.cache
Class LocalCache.HashIterator<T>
java.lang.Object
com.google.common.cache.LocalCache.HashIterator<T>
- All Implemented Interfaces:
Iterator<T>
- Direct Known Subclasses:
LocalCache.EntryIterator
,LocalCache.KeyIterator
,LocalCache.ValueIterator
- Enclosing class:
LocalCache<K,
V>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) LocalCache.Segment
<K, V> (package private) AtomicReferenceArray
<ReferenceEntry<K, V>> (package private) LocalCache<K,
V>.WriteThroughEntry (package private) ReferenceEntry
<K, V> (package private) LocalCache<K,
V>.WriteThroughEntry (package private) int
(package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final void
advance()
(package private) boolean
advanceTo
(ReferenceEntry<K, V> entry) Advances to the given entry.boolean
hasNext()
abstract T
next()
(package private) LocalCache<K,
V>.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
-
currentTable
-
nextEntry
-
nextExternal
-
lastReturned
-
-
Constructor Details
-
HashIterator
HashIterator()
-
-
Method Details
-
next
-
advance
final void advance() -
nextInChain
boolean nextInChain()Finds the next entry in the current chain. Returns true if an entry was found. -
nextInTable
boolean nextInTable()Finds the next entry in the current table. Returns true if an entry was found. -
advanceTo
Advances to the given entry. Returns true if the entry was valid, false if it should be skipped. -
hasNext
public boolean hasNext() -
nextEntry
LocalCache<K,V>.WriteThroughEntry nextEntry() -
remove
public void remove()
-