|
||||||||||
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.
MarkupCache
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 |
java.util.Collection<K> |
getKeys()
Get all the keys 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 matchesjava.util.Collection<K> getKeys()
boolean containsKey(K key)
key
-
key
int size()
void put(K key, V value)
key
- The reference key to find the elementvalue
- The element to be cachedvoid shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |