|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface defining the basic functions of a cache.
Method Summary | |
void |
addElement(java.lang.Object key,
java.lang.Object value)
|
int |
capacity()
Returns the maximum number of elements that can be cached at one time. |
java.lang.Object |
getElement(java.lang.Object key)
|
int |
size()
Returns the number of elements in the cache, not to be confused with the capacity() which returns the number
of elements that can be held in the cache at one time. |
Method Detail |
public void addElement(java.lang.Object key, java.lang.Object value)
public java.lang.Object getElement(java.lang.Object key)
public int size()
capacity()
which returns the number
of elements that can be held in the cache at one time.
public int capacity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |