Class WeakHashMapSafeReadLock.Entry<K,V>
java.lang.Object
java.lang.ref.Reference<K>
java.lang.ref.WeakReference<K>
org.glassfish.pfl.basic.concurrent.WeakHashMapSafeReadLock.Entry<K,V>
- All Implemented Interfaces:
Map.Entry<K,
V>
- Enclosing class:
WeakHashMapSafeReadLock<K,
V>
private static class WeakHashMapSafeReadLock.Entry<K,V>
extends WeakReference<K>
implements Map.Entry<K,V>
The entries in this hash table extend WeakReference, using its main ref
field as the key.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntry
(K key, V value, ReferenceQueue<K> queue, int hash, WeakHashMapSafeReadLock.Entry<K, V> next) Creates new entry. -
Method Summary
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, get, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
value
-
hash
private final int hash -
next
-
-
Constructor Details
-
Entry
Entry(K key, V value, ReferenceQueue<K> queue, int hash, WeakHashMapSafeReadLock.Entry<K, V> next) Creates new entry.
-
-
Method Details
-
getKey
-
getValue
-
setValue
-
equals
-
hashCode
public int hashCode() -
toString
-