| Modifier | Constructor and Description |
|---|---|
private |
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> 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() |
public K key
static <K,V> 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