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> 
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 SummaryConstructors
- 
Method SummaryMethods 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- 
MRUMapCache
 
- 
- 
Method Details- 
sizepublic int size()
- 
isEmptypublic boolean isEmpty()
- 
containsKey- Specified by:
- containsKeyin interface- Map<K,- V> 
- Overrides:
- containsKeyin class- AbstractMap<K,- V> 
 
- 
containsValue- Specified by:
- containsValuein interface- Map<K,- V> 
- Overrides:
- containsValuein class- AbstractMap<K,- V> 
 
- 
get
- 
put
- 
remove
- 
putAll
- 
clearpublic void clear()
- 
keySet
- 
values
- 
entrySet
- 
ofWraps 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
 
 
-