|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cache
Cache interface.
Method Summary | |
---|---|
void |
clear()
Clears the cache. |
boolean |
containsKey(java.lang.Object key)
Checks whether the cache contains a value associated with the key. |
boolean |
containsValue(java.lang.Object value)
Checks whether the cache contains the specified value. |
java.util.Set |
entrySet()
Returns a Set representation of the cache mapping. |
java.lang.Object |
get(java.lang.Object key)
Retrieves a value with the specified key from the cache. |
boolean |
isEmpty()
Determines if the cache is empty. |
java.util.Set |
keySet()
Gets the set of all the keys registered in the cahce. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Stores a value and assotiates a key with it. |
java.lang.Object |
remove(java.lang.Object key)
Removes a value with the specified key from the cache. |
void |
resize(int size)
Sets the maximum cache size. |
int |
size()
Returns the number of elements in cache. |
java.util.Collection |
values()
Gets a collection view of the values contained in this map. |
Method Detail |
---|
void clear()
boolean containsKey(java.lang.Object key)
key
- -- the key to look for.
boolean containsValue(java.lang.Object value)
value
- -- the value to look for.
java.lang.Object put(java.lang.Object key, java.lang.Object value)
key
- -- the key associated with the value.value
- -- value to store.
java.lang.Object get(java.lang.Object key)
key
- -- the key associated with the value.
java.lang.Object remove(java.lang.Object key)
key
- -- the key associated with the value.
int size()
boolean isEmpty()
java.util.Collection values()
java.util.Set keySet()
java.util.Set entrySet()
void resize(int size)
size
- -- the maximum cache size.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |