org.apache.oro.util
public final class CacheFIFO extends GenericCache
Since: 1.0
Version: 2.0.8
See Also: GenericCache
Constructor Summary | |
---|---|
CacheFIFO(int capacity)
Creates a CacheFIFO instance with a given cache capacity.
| |
CacheFIFO()
Same as:
CacheFIFO(GenericCache.DEFAULT_CAPACITY); |
Method Summary | |
---|---|
void | addElement(Object key, Object value)
Adds a value to the cache. |
Parameters: capacity The capacity of the cache.
CacheFIFO(GenericCache.DEFAULT_CAPACITY);
Parameters: key The key referencing the value added to the cache. value The value to add to the cache.