|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for managing caches of objects fetchable by key.
The map may chose to remove a mapping, for example to free memory, or if the data has become too old to be useful.
Method Summary | |
java.lang.Object |
get(java.lang.Object key)
Retrieve the Object associated with the key, or null if either no value has been associated or if the key's value has been cleared by the cache. |
void |
put(java.lang.Object key,
java.lang.Object value)
Associate a value with a key. |
void |
remove(java.lang.Object value)
Explicitly remove an object. |
Method Detail |
public void put(java.lang.Object key, java.lang.Object value)
key
- the key Objectvalue
- the Object to associate with the keypublic java.lang.Object get(java.lang.Object key)
key
- the key Object
public void remove(java.lang.Object value)
value
- the item to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |