public class LRUMapMultiKey extends LinkedHashMap<LRUMapMultiKey.Key,Object>
| Modifier and Type | Class and Description |
|---|---|
static class |
LRUMapMultiKey.Key |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
protected Map<Object,Set<LRUMapMultiKey.Key>> |
keys |
protected int |
maxSize |
| Constructor and Description |
|---|
LRUMapMultiKey(int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
LRUMapMultiKey.Key |
createKey(Object... k) |
Object |
put(LRUMapMultiKey.Key key,
Object value) |
Object |
remove(Object k) |
protected boolean |
removeEldestEntry(Map.Entry<LRUMapMultiKey.Key,Object> eldest) |
containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, sizeprotected Map<Object,Set<LRUMapMultiKey.Key>> keys
protected int maxSize
public LRUMapMultiKey.Key createKey(Object... k)
public void clear()
clear in interface Map<LRUMapMultiKey.Key,Object>clear in class LinkedHashMap<LRUMapMultiKey.Key,Object>public Object remove(Object k)
remove in interface Map<LRUMapMultiKey.Key,Object>remove in class HashMap<LRUMapMultiKey.Key,Object>public Object put(LRUMapMultiKey.Key key, Object value)
put in interface Map<LRUMapMultiKey.Key,Object>put in class HashMap<LRUMapMultiKey.Key,Object>protected boolean removeEldestEntry(Map.Entry<LRUMapMultiKey.Key,Object> eldest)
removeEldestEntry in class LinkedHashMap<LRUMapMultiKey.Key,Object>Copyright © 2004–2020 CodeLutin. All rights reserved.