Top Description Fields Constructors Methods
org.glassfish.hk2.utilities.general.internal

public Class DoubleNode<K, V>

extends Object
Class Inheritance
Type Parameters
<K>
key
<V>
value
Imports
java.lang.ref.ReferenceQueue, .WeakReference

Used for doubly linked lists with weak keys
Author
jwells

Field Summary

Modifier and TypeField and Description
private K
private DoubleNode<K, V>
private DoubleNode<K, V>
private final V
private final WeakReference<K>

Constructor Summary

AccessConstructor and Description
public
DoubleNode(K key, V value, ReferenceQueue<? super K> queue)

Method Summary

Modifier and TypeMethod and Description
public K
getHardenedKey()

Returns: the hardenedKey

public DoubleNode<K, V>
getNext()

Returns: the next

public DoubleNode<K, V>
getPrevious()

Returns: the previous

public V
getValue()

Returns: the value

public WeakReference<K>
getWeakKey()

Returns: the weakKey

public void
setHardenedKey(K
the hardenedKey to set
hardenedKey
)

public void
setNext(DoubleNode<K, V>
the next to set
next
)

public void
setPrevious(DoubleNode<K, V>
the previous to set
previous
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hardenedKeyback to summary
private K hardenedKey
nextback to summary
private DoubleNode<K, V> next
previousback to summary
private DoubleNode<K, V> previous
valueback to summary
private final V value
weakKeyback to summary
private final WeakReference<K> weakKey

Constructor Detail

DoubleNodeback to summary
public DoubleNode(K key, V value, ReferenceQueue<? super K> queue)

Method Detail

getHardenedKeyback to summary
public K getHardenedKey()
Returns:K

the hardenedKey

getNextback to summary
public DoubleNode<K, V> getNext()
Returns:DoubleNode<K, V>

the next

getPreviousback to summary
public DoubleNode<K, V> getPrevious()
Returns:DoubleNode<K, V>

the previous

getValueback to summary
public V getValue()
Returns:V

the value

getWeakKeyback to summary
public WeakReference<K> getWeakKey()
Returns:WeakReference<K>

the weakKey

setHardenedKeyback to summary
public void setHardenedKey(K hardenedKey)
Parameters
hardenedKey:K

the hardenedKey to set

setNextback to summary
public void setNext(DoubleNode<K, V> next)
Parameters
next:DoubleNode<K, V>

the next to set

setPreviousback to summary
public void setPrevious(DoubleNode<K, V> previous)
Parameters
previous:DoubleNode<K, V>

the previous to set