|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ref.Reference<T>
java.lang.ref.WeakReference<V>
net.sourceforge.rcache.WeakKeyedReference<K,V>
K - the type of keys maintained by this cacheV - the type of cached valuespublic final class WeakKeyedReference<K,V>
KeyedReference implementation based on WeakReference.
| Constructor Summary | |
|---|---|
WeakKeyedReference(K key,
V value,
java.lang.ref.ReferenceQueue<V> rq)
WeakKeyedReference constructor. |
|
| Method Summary | |
|---|---|
K |
getKey()
Get the reference key. |
| 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 net.sourceforge.rcache.KeyedReference |
|---|
get |
| Constructor Detail |
|---|
public WeakKeyedReference(K key,
V value,
java.lang.ref.ReferenceQueue<V> rq)
key - the keyvalue - the object to cacherq - a reference queue| Method Detail |
|---|
public K getKey()
getKey in interface KeyedReference<K,V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||