Class DoubleNode<K,V>
- java.lang.Object
-
- org.glassfish.hk2.utilities.general.internal.DoubleNode<K,V>
-
- Type Parameters:
K
- keyV
- value
public class DoubleNode<K,V> extends Object
Used for doubly linked lists with weak keys- Author:
- jwells
-
-
Constructor Summary
Constructors Constructor Description DoubleNode(K key, V value, ReferenceQueue<? super K> queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K
getHardenedKey()
DoubleNode<K,V>
getNext()
DoubleNode<K,V>
getPrevious()
V
getValue()
WeakReference<K>
getWeakKey()
void
setHardenedKey(K hardenedKey)
void
setNext(DoubleNode<K,V> next)
void
setPrevious(DoubleNode<K,V> previous)
-
-
-
Constructor Detail
-
DoubleNode
public DoubleNode(K key, V value, ReferenceQueue<? super K> queue)
-
-
Method Detail
-
getPrevious
public DoubleNode<K,V> getPrevious()
- Returns:
- the previous
-
setPrevious
public void setPrevious(DoubleNode<K,V> previous)
- Parameters:
previous
- the previous to set
-
getNext
public DoubleNode<K,V> getNext()
- Returns:
- the next
-
setNext
public void setNext(DoubleNode<K,V> next)
- Parameters:
next
- the next to set
-
getWeakKey
public WeakReference<K> getWeakKey()
- Returns:
- the weakKey
-
getValue
public V getValue()
- Returns:
- the value
-
getHardenedKey
public K getHardenedKey()
- Returns:
- the hardenedKey
-
setHardenedKey
public void setHardenedKey(K hardenedKey)
- Parameters:
hardenedKey
- the hardenedKey to set
-
-