Class WeakHashMapSafeReadLock.HashIterator<T>
java.lang.Object
org.glassfish.pfl.basic.concurrent.WeakHashMapSafeReadLock.HashIterator<T>
- All Implemented Interfaces:
Iterator<T>
- Direct Known Subclasses:
WeakHashMapSafeReadLock.EntryIterator, WeakHashMapSafeReadLock.KeyIterator, WeakHashMapSafeReadLock.ValueIterator
- Enclosing class:
WeakHashMapSafeReadLock<K,V>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ObjectStrong reference needed to avoid disappearance of key between nextEntry() and any use of the entry(package private) WeakHashMapSafeReadLock.Entry<K, V> (package private) int(package private) int(package private) WeakHashMapSafeReadLock.Entry<K, V> (package private) ObjectStrong reference needed to avoid disappearance of key between hasNext and next -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining, next
-
Field Details
-
index
int index -
entry
WeakHashMapSafeReadLock.Entry<K,V> entry -
lastReturned
WeakHashMapSafeReadLock.Entry<K,V> lastReturned -
expectedModCount
int expectedModCount -
nextKey
Object nextKeyStrong reference needed to avoid disappearance of key between hasNext and next -
currentKey
Object currentKeyStrong reference needed to avoid disappearance of key between nextEntry() and any use of the entry
-
-
Constructor Details
-
HashIterator
HashIterator()
-
-
Method Details
-
hasNext
-
nextEntry
The common parts of next() across different types of iterators -
remove
-