|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.iiit.cache.GenericCache
Implements a very generic cache
Constructor Summary | |
GenericCache()
Creates a new instance of GenericCache |
Method Summary | |
void |
addElement(Object key,
Object value)
Add a new element to the cache. |
protected void |
clear()
Clears the cache |
Object |
getElement(Object key)
Retrieves a cache-entry |
Enumeration |
getKeys()
Get all defined keys |
void |
removeElement(Object key)
Remove an entry from the cache |
protected int |
size()
Retrieves the number of elements stored in the cache |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GenericCache()
Method Detail |
protected void clear()
protected int size()
public void addElement(Object key, Object value)
key
- The unique key of the cache entryvalue
- The value of the cache entrypublic Object getElement(Object key) throws CacheFaultException
key
- The unique key of the cache entry to retrieve
CacheFaultException
- if there is no entry with the given keypublic Enumeration getKeys()
public void removeElement(Object key)
key
- The unique key of the entry to remove
|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |