public class MapCache<K,V> extends Object implements ICache<K,V>
MapCache()
MapCache(int maxCapacity)
MapCache(int maxCapacity, boolean accessOrder)
MapCache(Map<K,Ref<V>> map)
void
clear()
Ref<V>
get(K key)
V
get(K key, Supplier<V> loader)
getIfPresent(K key)
put(K key, V value)
putAll(Map<? extends K,? extends V> m)
putIfAbsent(K key, V value)
remove(K key)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public MapCache()
public MapCache(int maxCapacity)
public MapCache(int maxCapacity, boolean accessOrder)
public MapCache(Map<K,Ref<V>> map)
@Nullable public Ref<V> get(@Nonnull K key)
get
ICache<K,V>
@Nullable public V getIfPresent(@Nonnull K key)
getIfPresent
@Nullable public V get(@Nonnull K key, Supplier<V> loader)
public Ref<V> putIfAbsent(@Nonnull K key, @Nullable V value)
putIfAbsent
public void put(@Nonnull K key, @Nullable V value)
put
public void putAll(Map<? extends K,? extends V> m)
putAll
public void remove(K key)
remove
public void clear()
clear
Copyright © 2024 fossc. All rights reserved.