接口 ConcurrentReferenceHashMap.Reference<K,V>
- 类型参数:
K- the key typeV- the value type
- 所有已知实现类:
ConcurrentReferenceHashMap.SoftEntryReference,ConcurrentReferenceHashMap.WeakEntryReference
- 封闭类:
- ConcurrentReferenceHashMap<K,
V>
protected static interface ConcurrentReferenceHashMap.Reference<K,V>
A reference to an
ConcurrentReferenceHashMap.Entry contained in the map. Implementations are usually
wrappers around specific Java reference implementations (e.g., SoftReference).-
方法概要
修饰符和类型方法说明get()Return the referenced entry, ornullif the entry is no longer available.intgetHash()Return the hash for the reference.getNext()Return the next reference in the chain, ornullif none.voidrelease()Release this entry and ensure that it will be returned fromReferenceManager#pollForPurge().
-
方法详细资料
-
get
Return the referenced entry, ornullif the entry is no longer available. -
getHash
int getHash()Return the hash for the reference. -
getNext
Return the next reference in the chain, ornullif none. -
release
void release()Release this entry and ensure that it will be returned fromReferenceManager#pollForPurge().
-