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(Map<K,V> backingMap) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
|
boolean |
containsKey(Object key) |
|
boolean |
containsValue(Object value) |
|
Set<Map.Entry<K,V>> |
entrySet() |
|
V |
get(Object key) |
|
boolean |
isEmpty() |
|
Set<K> |
keySet() |
|
static <K,V> Map<K,V> |
of(Map<K,V> map) |
Wraps the specified map with a most recently used cache
|
V |
put(K key,
V value) |
|
void |
putAll(Map<? extends K,? extends V> m) |
|
V |
remove(Object key) |
|
int |
size() |
|
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
Object key)
containsKey in interface Map<K,V>containsKey in class AbstractMap<K,V>public boolean containsValue(@Nullable
Object value)
containsValue in interface Map<K,V>containsValue in class AbstractMap<K,V>public void clear()
@NotNull public Collection<V> values()
Copyright © 2020. All rights reserved.