|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cache<K,V>
Method Summary | |
---|---|
long |
capacity()
returns the total capacity of the cache defined at contruction time |
boolean |
contains(K key)
returns true if the Cache contains the key |
V |
get(K key)
Gets the Value from the Cache, If the object doesnt exist default behaviour is to return null. |
void |
set(K key,
V value)
puts the key and its value into the cache |
long |
size()
returns the current size of the cache |
Method Detail |
---|
V get(K key)
key
-
boolean contains(K key)
key
-
void set(K key, V value)
key
- value
- long size()
long capacity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |