Package tigase.util.cache
Class SimpleCache<K,V>
- java.lang.Object
-
- tigase.util.cache.SimpleCache<K,V>
-
- All Implemented Interfaces:
java.util.Map<K,V>
public class SimpleCache<K,V> extends java.lang.Object implements java.util.Map<K,V>
Describe class SimpleCache here.
Created: Sun Nov 26 19:55:22 2006- Version:
- $Rev$
- Author:
- Artur Hefczyc
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
cache_off
-
Constructor Summary
Constructors Constructor Description SimpleCache(int maxSize, long time)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
protected java.util.Map<K,V>
dataMap()
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
boolean
equals(java.lang.Object o)
V
get(java.lang.Object key)
int
hashCode()
boolean
isEmpty()
java.util.Set<K>
keySet()
V
put(K key, V value)
void
putAll(java.util.Map<? extends K,? extends V> m)
V
remove(java.lang.Object key)
void
removeOld()
int
size()
java.util.Collection<V>
values()
-
-
-
Method Detail
-
removeOld
public void removeOld()
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
equals
public boolean equals(java.lang.Object o)
-
hashCode
public int hashCode()
-
values
public java.util.Collection<V> values()
-
-