|
||||||||||
| 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.SoftReference<V>
net.sourceforge.rcache.SoftKeyedReference<K,V>
K - the type of keys maintained by this cacheV - the type of cached valuespublic final class SoftKeyedReference<K,V>
KeyedReference implementation based on
SoftReference.
| Constructor Summary | |
|---|---|
SoftKeyedReference(K key,
V value,
java.lang.ref.ReferenceQueue<V> rq)
SoftKeyedReference constructor. |
|
| Method Summary | |
|---|---|
K |
getKey()
Get the reference key. |
| Methods inherited from class java.lang.ref.SoftReference |
|---|
get |
| Methods inherited from class java.lang.ref.Reference |
|---|
clear, enqueue, 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 SoftKeyedReference(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 | |||||||||