public class SoftReferenceWithKey extends SoftReference
构造器和说明 |
---|
SoftReferenceWithKey(Object referent,
Object key,
ReferenceQueue q)
Creates a new SoftReference with a key.
|
限定符和类型 | 方法和说明 |
---|---|
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 1999-2016 The Apache Software Foundation. All Rights Reserved.