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, getclone, containsKey, entrySet, isEmpty, keySet, putAll, size, valuesequals, hashCode, toStringprotected 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-2012 CodeLutin. All Rights Reserved.