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