public class FIFOObjectCache<T> extends java.lang.Object implements ObjectCache<T>
| Constructor and Description |
|---|
FIFOObjectCache() |
FIFOObjectCache(int size) |
| 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 FIFOObjectCache()
public FIFOObjectCache(int size)
public void addObject(ObjectKey<T> objectKey, T object)
ObjectCacheaddObject in interface ObjectCache<T>objectKey - the ObjectKeyobject - the object to be addedpublic void clear()
ObjectCacheclear in interface ObjectCache<T>public T getObject(ObjectKey<T> objectKey)
ObjectCachegetObject in interface ObjectCache<T>public T removeObject(ObjectKey<T> objectKey)
ObjectCacheremoveObject in interface ObjectCache<T>objectKey - ObjectKeyCopyright © 2018 SAP SE. All Rights Reserved.