public class MapBackedCache<K,V> extends Object implements Cache<K,V>
protected Map<K,V>
map
MapBackedCache(Map<K,V> map)
Map<K,V>
asMap()
void
clear()
V
computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
get(K key)
put(K key, V val)
remove(K key)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected final Map<K,V> map
public MapBackedCache(Map<K,V> map)
public Map<K,V> asMap()
public V put(K key, V val)
put
Cache<K,V>
public V get(K key)
get
public V remove(K key)
remove
public void clear()
clear
public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
computeIfAbsent
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.