K
- the key typeV
- the value typeprivate static class WeakValueHashMap.WeakValueRef<K,V> extends java.lang.ref.WeakReference<V> implements WeakValueHashMap.ValueRef<K,V>
Modifier | Constructor and Description |
---|---|
private |
WeakValueHashMap.WeakValueRef(K key,
V val,
java.lang.ref.ReferenceQueue<V> q)
Create a new WeakValueRef.
|
Modifier and Type | Method and Description |
---|---|
(package private) static <K,V> WeakValueHashMap.WeakValueRef<K,V> |
create(K key,
V val,
java.lang.ref.ReferenceQueue<V> q)
Safely create a new WeakValueRef
|
K |
getKey() |
V |
getValue() |
V |
setValue(V value) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get
public K key
static <K,V> WeakValueHashMap.WeakValueRef<K,V> create(K key, V val, java.lang.ref.ReferenceQueue<V> q)
K
- the key typeV
- the value typekey
- the keyval
- the valueq
- the reference queuepublic java.lang.String toString()
toString
in class java.lang.Object