gnu.kawa.util
Class WeakHashNode<K,V>

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.WeakReference<K>
          extended by gnu.kawa.util.WeakHashNode<K,V>
All Implemented Interfaces:
java.util.Map.Entry<K,V>

public class WeakHashNode<K,V>
extends java.lang.ref.WeakReference<K>
implements java.util.Map.Entry<K,V>


Field Summary
 int hash
           
 WeakHashNode<K,V> next
           
 V value
           
 
Constructor Summary
WeakHashNode(K key, java.lang.ref.ReferenceQueue<K> q, int hash)
           
 
Method Summary
 K getKey()
           
 V getValue()
           
 V setValue(V value)
           
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Field Detail

next

public WeakHashNode<K,V> next

hash

public int hash

value

public V value
Constructor Detail

WeakHashNode

public WeakHashNode(K key,
                    java.lang.ref.ReferenceQueue<K> q,
                    int hash)
Method Detail

getKey

public K getKey()
Specified by:
getKey in interface java.util.Map.Entry<K,V>

getValue

public V getValue()
Specified by:
getValue in interface java.util.Map.Entry<K,V>

setValue

public V setValue(V value)
Specified by:
setValue in interface java.util.Map.Entry<K,V>