K
- Key Type of the MapV
- Value Type of the Mapjava.util.Map<K,V>
public class MRUMapCache<K,V>
extends java.util.AbstractMap<K,V>
Constructor | Description |
---|---|
MRUMapCache(java.util.Map<K,V> backingMap) |
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
|
boolean |
containsKey(java.lang.Object key) |
|
boolean |
containsValue(java.lang.Object value) |
|
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
|
V |
get(java.lang.Object key) |
|
boolean |
isEmpty() |
|
java.util.Set<K> |
keySet() |
|
static <K,V> java.util.Map<K,V> |
of(java.util.Map<K,V> map) |
Wraps the specified map with a most recently used cache
|
V |
put(K key,
V value) |
|
void |
putAll(java.util.Map<? extends K,? extends V> m) |
|
V |
remove(java.lang.Object key) |
|
int |
size() |
|
java.util.Collection<V> |
values() |
public int size()
public boolean isEmpty()
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public V get(java.lang.Object key)
public V remove(java.lang.Object key)
public void clear()
public java.util.Set<K> keySet()
public java.util.Collection<V> values()
public static <K,V> java.util.Map<K,V> of(java.util.Map<K,V> map)
K
- Key Type of the MapV
- Value Type of the Mapmap
- Map to be wrappedCopyright © 2018. All rights reserved.