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 MapV- 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 Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionMRUMapCache(@NotNull Map<K, V> backingMap) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier 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 AbstractMap
clone, equals, hashCode, toStringMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
MRUMapCache
-
-
Method Details
-
size
-
isEmpty
-
containsKey
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classAbstractMap<K,V>
-
containsValue
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
containsValuein interfaceMap<K,V> - Overrides:
containsValuein classAbstractMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
-
keySet
-
values
-
entrySet
-
of
Deprecated, 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 MapV- Value Type of the Map- Parameters:
map- Map to be wrapped- Returns:
- Map
-