public class SimpleObjectCache<T> extends java.lang.Object implements ObjectCache<T>
| Constructor and Description |
|---|
SimpleObjectCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
addObject(ObjectKey<T> objectKey,
T object)
Adds an object under the given key to the cache.
|
void |
clear()
Clear the cache.
|
T |
getObject(ObjectKey<T> objectKey)
Get the object which is found under the given key.
|
T |
removeObject(ObjectKey<T> objectKey)
Removes an object from the cache.
|
public T getObject(ObjectKey<T> objectKey)
ObjectCachegetObject in interface ObjectCache<T>public void addObject(ObjectKey<T> objectKey, T object)
ObjectCacheaddObject in interface ObjectCache<T>objectKey - the ObjectKeyobject - the object to be addedpublic T removeObject(ObjectKey<T> objectKey)
ObjectCacheremoveObject in interface ObjectCache<T>objectKey - ObjectKeypublic void clear()
ObjectCacheclear in interface ObjectCache<T>Copyright © 2018 SAP SE. All Rights Reserved.