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