K - Key Type of the MapV - Value Type of the MapMap<K,V>public class MRUMapCache<K,V> extends AbstractMap<K,V>
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>| Constructor | Description |
|---|---|
MRUMapCache(@NotNull Map<K,V> backingMap) |
| Modifier and Type | Method | 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, toStringcompute, 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 © 2020. All rights reserved.