|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.markup.MarkupCache.DefaultCacheImplementation<K,V>
K
- V
- public class MarkupCache.DefaultCacheImplementation<K,V>
Constructor Summary | |
---|---|
MarkupCache.DefaultCacheImplementation()
Construct. |
Method Summary | |
---|---|
void |
clear()
Clear the cache |
boolean |
containsKey(java.lang.Object key)
Check if key is in the cache |
V |
get(java.lang.Object 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarkupCache.DefaultCacheImplementation()
Method Detail |
---|
public void clear()
MarkupCache.ICache
clear
in interface MarkupCache.ICache<K,V>
MarkupCache.ICache.clear()
public boolean containsKey(java.lang.Object key)
MarkupCache.ICache
containsKey
in interface MarkupCache.ICache<K,V>
key
MarkupCache.ICache.containsKey(java.lang.Object)
public V get(java.lang.Object key)
MarkupCache.ICache
get
in interface MarkupCache.ICache<K,V>
key
or null if no matchesMarkupCache.ICache.get(java.lang.Object)
public java.util.Collection<K> getKeys()
MarkupCache.ICache
getKeys
in interface MarkupCache.ICache<K,V>
MarkupCache.ICache.getKeys()
public void put(K key, V value)
MarkupCache.ICache
put
in interface MarkupCache.ICache<K,V>
key
- The reference key to find the elementvalue
- The element to be cachedMarkupCache.ICache.put(java.lang.Object, java.lang.Object)
public boolean remove(K key)
MarkupCache.ICache
remove
in interface MarkupCache.ICache<K,V>
MarkupCache.ICache.remove(java.lang.Object)
public int size()
MarkupCache.ICache
size
in interface MarkupCache.ICache<K,V>
MarkupCache.ICache.size()
public void shutdown()
MarkupCache.ICache
shutdown
in interface MarkupCache.ICache<K,V>
MarkupCache.ICache.shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |