public class SoftReferenceCache<K,V> extends ACache<K,V>
private HashMap<K,SoftReference<V>>
cache
SoftReferenceCache()
Optional<V>
get(K key)
(专用程序包) Map<K,?>
getCache()
void
put(K key, V value)
clear, get, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private final HashMap<K,SoftReference<V>> cache
public SoftReferenceCache()
Map<K,?> getCache()
getCache
ACache<K,V>
public void put(K key, V value)
ICache
public Optional<V> get(K key)
Copyright © 2019. All rights reserved.