public class WeakCacheMap<K,V> extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<K,Reference<V>> |
cacheMap |
protected ReferenceQueue<V> |
refQueue |
Constructor and Description |
---|
WeakCacheMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(K key) |
V |
get(K key) |
protected Reference<V> |
newReference(K key,
V value,
ReferenceQueue<V> vReferenceQueue) |
protected void |
processQueue() |
void |
put(K key,
V value) |
void |
remove(K key) |
protected final ReferenceQueue<V> refQueue
Copyright © 2017. All rights reserved.