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) Object
Strong 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) Object
Strong reference needed to avoid disappearance of key between hasNext and next -
Constructor Summary
Constructors -
Method Summary
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, 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