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
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
containsKeyin interfaceMap<S,T>
-
containsValue
- Specified by:
containsValuein interfaceMap<S,T>
-
entrySet
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-
hashCode
public int hashCode() -
toString
-
equals
-