public final class CacheFIFO extends GenericCache
GenericCache
,
Serialized FormDEFAULT_CAPACITY
Constructor and Description |
---|
CacheFIFO()
Same as:
|
CacheFIFO(int capacity)
Creates a CacheFIFO instance with a given cache capacity.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(java.lang.Object key,
java.lang.Object value)
Adds a value to the cache.
|
capacity, getElement, isFull, keys, size
public CacheFIFO(int capacity)
capacity
- The capacity of the cache.public CacheFIFO()
CacheFIFO(GenericCache.DEFAULT_CAPACITY);
public final void addElement(java.lang.Object key, java.lang.Object value)
addElement
in interface Cache
addElement
in class GenericCache
key
- The key referencing the value added to the cache.value
- The value to add to the cache.Copyright ? 2000-2003 Apache Software Foundation. All Rights Reserved.