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, wait
clear, enqueue, isEnqueued, reachabilityFence
get
public 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.