|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - The key typeV - The value typepublic static interface MarkupCache.ICache<K,V>
MarkupCache allows you to implement you own cache implementation. ICache is the interface the implementation must comply with.
| Method Summary | |
|---|---|
void |
clear()
Clear the cache |
boolean |
containsKey(K key)
Check if key is in the cache |
V |
get(K key)
Get the cache element associated with the key |
Collection<K> |
getKeys()
Get all the keys referencing cache entries |
Collection<V> |
getValues()
Get all the values referencing cache entries |
void |
put(K key,
V value)
Put an entry into the cache |
boolean |
remove(K key)
Remove an entry from the cache. |
void |
shutdown()
Cleanup and shutdown |
int |
size()
Get the number of cache entries |
| Method Detail |
|---|
void clear()
boolean remove(K key)
key -
V get(K key)
key -
key or null if no matchesCollection<K> getKeys()
Collection<V> getValues()
boolean containsKey(K key)
key -
keyint size()
void put(K key,
V value)
key - The reference key to find the element. Must not be null.value - The element to be cached. Must not be null.void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||