|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Cache<K,V>
A basic cache interface. If necessary, we can always move to the commons cache for the future.
| Method Summary | |
|---|---|
void |
addElement(K key,
V value)
Stores an entry into the cache. |
long |
getCapacity()
Returns the capacity of the cache. |
V |
getElement(K key)
Retrieves an entry for the cache. |
long |
getSize()
|
V |
removeElement(K key)
Removes an entry from the cache. |
| Method Detail |
|---|
V getElement(K key)
void addElement(K key,
V value)
V removeElement(K key)
key - The entry to return.
long getCapacity()
long getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||