| java.lang.Object org.shiftone.cache.adaptor.CacheMap
CacheMap | public class CacheMap implements Map(Code) | | Makes a shiftone cache look like a map.
author: Jeff Drost version: $Revision: 1.2 $ |
Method Summary | |
public void | clear() | public boolean | containsKey(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.
This is because some time will pass between when you test for the elements
existance in the cache, and when you call get(). | public boolean | containsValue(Object value) | public Set | entrySet() | public Object | get(Object key) | public boolean | isEmpty() | public Set | keySet() | public Object | put(Object key, Object value) Puts an object into the cache and returns the previous
value that was associated with that key. | public void | putAll(Map map) Copies all of the mappings from the specified map to this cache. | public Object | remove(Object key) | public int | size() | public Collection | values() |
clear | public void clear()(Code) | | Clears the cache
|
containsKey | public boolean containsKey(Object key)(Code) | | 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.
This is because some time will pass between when you test for the elements
existance in the cache, and when you call get(). During that window of time,
the cache element may be evicted.
|
containsValue | public boolean containsValue(Object value)(Code) | | not implemented
|
entrySet | public Set entrySet()(Code) | | not implemented
|
isEmpty | public boolean isEmpty()(Code) | | Is the cache empty at this instance in time
|
keySet | public Set keySet()(Code) | | not implemented
|
put | public Object put(Object key, Object value)(Code) | | Puts an object into the cache and returns the previous
value that was associated with that key.
|
putAll | public void putAll(Map map)(Code) | | Copies all of the mappings from the specified map to this cache.
|
size | public int size()(Code) | | The size of this cache at this instance in time
|
|
|