K
- keyV
- valuepublic class DoubleNode<K,V>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private K |
hardenedKey |
private DoubleNode<K,V> |
next |
private DoubleNode<K,V> |
previous |
private V |
value |
private java.lang.ref.WeakReference<K> |
weakKey |
Constructor and Description |
---|
DoubleNode(K key,
V value,
java.lang.ref.ReferenceQueue<? super K> queue) |
Modifier and Type | Method and Description |
---|---|
K |
getHardenedKey() |
DoubleNode<K,V> |
getNext() |
DoubleNode<K,V> |
getPrevious() |
V |
getValue() |
java.lang.ref.WeakReference<K> |
getWeakKey() |
void |
setHardenedKey(K hardenedKey) |
void |
setNext(DoubleNode<K,V> next) |
void |
setPrevious(DoubleNode<K,V> previous) |
private final java.lang.ref.WeakReference<K> weakKey
private final V value
private DoubleNode<K,V> previous
private DoubleNode<K,V> next
private K hardenedKey
public DoubleNode<K,V> getPrevious()
public void setPrevious(DoubleNode<K,V> previous)
previous
- the previous to setpublic DoubleNode<K,V> getNext()
public void setNext(DoubleNode<K,V> next)
next
- the next to setpublic java.lang.ref.WeakReference<K> getWeakKey()
public V getValue()
public K getHardenedKey()
public void setHardenedKey(K hardenedKey)
hardenedKey
- the hardenedKey to set