K - Key Type of the MapV - Value Type of the Mappublic class MRUMapCache<K,V> extends AbstractMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MRUMapCache(@NotNull Map<K,V> backingMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(@Nullable Object key) |
boolean |
containsValue(@Nullable Object value) |
@NotNull Set<Map.Entry<K,V>> |
entrySet() |
V |
get(@Nullable Object key) |
boolean |
isEmpty() |
@NotNull Set<K> |
keySet() |
static <K,V> @NotNull Map<K,V> |
of(@NotNull Map<K,V> map)
Wraps the specified map with a most recently used cache
|
V |
put(K key,
V value) |
void |
putAll(@NotNull Map<? extends K,? extends V> m) |
V |
remove(@Nullable Object key) |
int |
size() |
@NotNull Collection<V> |
values() |
clone, equals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic int size()
public boolean isEmpty()
public boolean containsKey(@Nullable @Nullable Object key)
containsKey in interface Map<K,V>containsKey in class AbstractMap<K,V>public boolean containsValue(@Nullable @Nullable Object value)
containsValue in interface Map<K,V>containsValue in class AbstractMap<K,V>public void clear()
@NotNull public @NotNull Collection<V> values()
Copyright © 2021. All rights reserved.