Package co.aikar.util
Class MRUMapCache<K,V> 
java.lang.Object
java.util.AbstractMap<K,V>
 
co.aikar.util.MRUMapCache<K,V> 
- Type Parameters:
- K- Key Type of the Map
- V- Value Type of the Map
- All Implemented Interfaces:
- Map<K,- V> 
Deprecated, for removal: This API element is subject to removal in a future version.
Implements a Most Recently Used cache in front of a backing map, to quickly access the last accessed result.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> 
- 
Constructor SummaryConstructorsConstructorDescriptionMRUMapCache(@NotNull Map<K, V> backingMap) Deprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()Deprecated, for removal: This API element is subject to removal in a future version.booleancontainsKey(@Nullable Object key) Deprecated, for removal: This API element is subject to removal in a future version.booleancontainsValue(@Nullable Object value) Deprecated, for removal: This API element is subject to removal in a future version.entrySet()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.booleanisEmpty()Deprecated, for removal: This API element is subject to removal in a future version.keySet()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Wraps the specified map with a most recently used cacheDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intsize()Deprecated, for removal: This API element is subject to removal in a future version.values()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.util.AbstractMapclone, equals, hashCode, toStringMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
- 
Constructor Details- 
MRUMapCacheDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
sizepublic int size()Deprecated, for removal: This API element is subject to removal in a future version.
- 
isEmptypublic boolean isEmpty()Deprecated, for removal: This API element is subject to removal in a future version.
- 
containsKeyDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- containsKeyin interface- Map<K,- V> 
- Overrides:
- containsKeyin class- AbstractMap<K,- V> 
 
- 
containsValueDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- containsValuein interface- Map<K,- V> 
- Overrides:
- containsValuein class- AbstractMap<K,- V> 
 
- 
getDeprecated, for removal: This API element is subject to removal in a future version.
- 
putDeprecated, for removal: This API element is subject to removal in a future version.
- 
removeDeprecated, for removal: This API element is subject to removal in a future version.
- 
putAllDeprecated, for removal: This API element is subject to removal in a future version.
- 
clearpublic void clear()Deprecated, for removal: This API element is subject to removal in a future version.
- 
keySetDeprecated, for removal: This API element is subject to removal in a future version.
- 
valuesDeprecated, for removal: This API element is subject to removal in a future version.
- 
entrySetDeprecated, for removal: This API element is subject to removal in a future version.
- 
ofDeprecated, for removal: This API element is subject to removal in a future version.Wraps the specified map with a most recently used cache- Type Parameters:
- K- Key Type of the Map
- V- Value Type of the Map
- Parameters:
- map- Map to be wrapped
- Returns:
- Map
 
 
-