|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.shiftone.cache.adaptor.CacheMap
Makes a shiftone cache look like a map.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Constructor Summary | |
CacheMap(Cache cache)
|
|
| Method Summary | |
void |
clear()
Clears the cache |
boolean |
containsKey(java.lang.Object key)
Warning - just because this method returns true, you can NOT expect to be able to get the value of the object that the cache contains. |
boolean |
containsValue(java.lang.Object value)
not implemented |
java.util.Set |
entrySet()
not implemented |
java.lang.Object |
get(java.lang.Object key)
Gets an object from the cache based on it's key |
boolean |
isEmpty()
Is the cache empty at this instance in time |
java.util.Set |
keySet()
not implemented |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Puts an object into the cache and returns the previous value that was associated with that key. |
void |
putAll(java.util.Map map)
Copies all of the mappings from the specified map to this cache. |
java.lang.Object |
remove(java.lang.Object key)
|
int |
size()
The size of this cache at this instance in time |
java.util.Collection |
values()
not implemented |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Constructor Detail |
public CacheMap(Cache cache)
| Method Detail |
public int size()
size in interface java.util.Mappublic boolean isEmpty()
isEmpty in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mappublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Map
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mappublic void putAll(java.util.Map map)
putAll in interface java.util.Mappublic void clear()
clear in interface java.util.Mappublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.Mappublic java.util.Collection values()
values in interface java.util.Mappublic java.util.Set entrySet()
entrySet in interface java.util.Map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||