public class SoftReferenceWithKey extends SoftReference
| Constructor and Description |
|---|
SoftReferenceWithKey(Object referent,
Object key,
ReferenceQueue q)
Creates a new SoftReference with a key.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getKey()
Returns the key associated with this reference.
|
getclear, enqueue, isEnqueuedpublic SoftReferenceWithKey(Object referent, Object key, ReferenceQueue q)
referent - object the new soft reference will refer tokey - the key objectq - queue the soft reference is registered withpublic Object getKey()
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.