Package mondrian.util
Class CacheMap<S,T>
java.lang.Object
mondrian.util.CacheMap<S,T>
- All Implemented Interfaces:
Map<S,
T>
Map with limited size to be used as cache.
- Author:
- lcanals, www.tasecurity.net
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
CacheMap
public CacheMap(int size) Creates an empty map with limited size.- Parameters:
size
- Maximum number of mapped elements.
-
-
Method Details
-
clear
public void clear() -
containsKey
- Specified by:
containsKey
in interfaceMap<S,
T>
-
containsValue
- Specified by:
containsValue
in interfaceMap<S,
T>
-
entrySet
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-
hashCode
public int hashCode() -
toString
-
equals
-