|
||||||||||
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(java.lang.Object key,
java.lang.Object value)
Add a value for the key to this cache. |
void |
clear()
Remove all entries of the cache. |
java.lang.Object |
get(java.lang.Object key)
Return the value for the key in case there is one in the cache. |
java.lang.Object |
remove(java.lang.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 |
---|
java.lang.Object get(java.lang.Object key)
key
- The key to look-up
void add(java.lang.Object key, java.lang.Object value)
key
- The key for the valuevalue
- The value to add to the cachejava.lang.Object remove(java.lang.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 |