|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheMap
This is the interface of a simple cache map.
Method Summary | |
---|---|
void |
add(Object key,
Object value)
Add a value for the key to this cache. |
void |
clear()
Remove all entries of the cache. |
Object |
get(Object key)
Return the value for the key in case there is one in the cache. |
Object |
remove(Object key)
Remove a key and its value from the cache. |
int |
size()
Returns the number of key-value pairs in this cache. |
Method Detail |
---|
Object get(Object key)
key
- The key to look-up
void add(Object key, Object value)
key
- The key for the valuevalue
- The value to add to the cacheObject remove(Object key)
key
- The key to remove
int size()
void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |