public class SoftReferenceWithKey extends SoftReference
| Constructor | Description |
|---|---|
SoftReferenceWithKey(Object referent,
Object key,
ReferenceQueue q) |
Creates a new SoftReference with a key.
|
| Modifier and Type | Method | Description |
|---|---|---|
Object |
getKey() |
Returns the key associated with this reference.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, enqueue, isEnqueued, reachabilityFencegetpublic 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 © 2018 Apache Software Foundation. All rights reserved.