public interface ILcdCache
Cached objects identified by their own keys. Each key must therefore be unique.
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears the cache.
|
java.lang.Object |
getCachedObject(java.lang.Object aKey)
Looks up and returns the cached Object corresponding to the given key.
|
void |
insertIntoCache(java.lang.Object aKey,
java.lang.Object aObject)
Inserts a cache Object corresponding to the given key Object.
|
java.lang.Object |
removeCachedObject(java.lang.Object aKey)
Looks up and removes the cached Object corresponding to the given key.
|
void insertIntoCache(java.lang.Object aKey, java.lang.Object aObject)
aKey
- the key Object that will be used to identify the Object.
The key must therefore be a unique identifier, typically the caller
itself: insertIntoCache(this, ...)
.aObject
- the Object to be cached.java.lang.Object getCachedObject(java.lang.Object aKey)
aKey
- the key Object that was used for storing the cache Object.java.lang.Object removeCachedObject(java.lang.Object aKey)
aKey
- the key Object that was used for storing the cache Object.void clearCache()