Class LRUMapMultiKey
java.lang.Object
- All Implemented Interfaces:
Serializable, Cloneable, Map<LRUMapMultiKey.Key, Object>, SequencedMap<LRUMapMultiKey.Key, Object>
Created: 23 mai 2006 04:08:03
- Author:
- Benjamin Poussin - poussin@codelutin.com
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()put(LRUMapMultiKey.Key key, Object value) protected booleanremoveEldestEntry(Map.Entry<LRUMapMultiKey.Key, Object> eldest) Methods inherited from class LinkedHashMap
containsValue, entrySet, forEach, get, getOrDefault, keySet, newLinkedHashMap, putFirst, putLast, replaceAll, reversed, sequencedEntrySet, sequencedKeySet, sequencedValues, valuesMethods inherited from class HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, putAll, putIfAbsent, remove, replace, replace, sizeMethods inherited from class AbstractMap
equals, hashCode, toStringMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, sizeMethods inherited from interface SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry
-
Field Details
-
keys
-
maxSize
protected int maxSize
-
-
Constructor Details
-
LRUMapMultiKey
public LRUMapMultiKey(int maxSize)
-
-
Method Details
-
createKey
-
clear
public void clear()- Specified by:
clearin interfaceMap<LRUMapMultiKey.Key, Object>- Overrides:
clearin classLinkedHashMap<LRUMapMultiKey.Key, Object>
-
remove
- Specified by:
removein interfaceMap<LRUMapMultiKey.Key, Object>- Overrides:
removein classHashMap<LRUMapMultiKey.Key, Object>
-
put
- Specified by:
putin interfaceMap<LRUMapMultiKey.Key, Object>- Overrides:
putin classHashMap<LRUMapMultiKey.Key, Object>
-
removeEldestEntry
- Overrides:
removeEldestEntryin classLinkedHashMap<LRUMapMultiKey.Key, Object>
-