Package tigase.util.cache
Class SimpleCache<K,V>
java.lang.Object
tigase.util.cache.SimpleCache<K,V>
- All Implemented Interfaces:
Map<K,
V>
Describe class SimpleCache here.
Created: Sun Nov 26 19:55:22 2006
Created: Sun Nov 26 19:55:22 2006
- Version:
- $Rev$
- Author:
- Artur Hefczyc
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
cache_off
protected boolean cache_off
-
-
Constructor Details
-
SimpleCache
public SimpleCache(int maxSize, long time)
-
-
Method Details
-
removeOld
public void removeOld() -
get
-
put
-
clear
public void clear() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V>
-
entrySet
-
equals
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
keySet
-
putAll
-
remove
-
size
public int size() -
values
-
dataMap
-