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.
|
get
clear, enqueue, isEnqueued
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 © 2017 Apache Software Foundation. All rights reserved.