org.apache.oro.util
public interface Cache
Since: 1.0
Version: 2.0.8
Method Summary | |
---|---|
void | addElement(Object key, Object value) |
int | capacity()
Returns the maximum number of elements that can be cached at one time.
|
Object | getElement(Object key) |
int | size()
Returns the number of elements in the cache, not to be confused with
the {@link #capacity()} which returns the number
of elements that can be held in the cache at one time.
|
Returns: The maximum number of elements that can be cached at one time.
Returns: The current size of the cache (i.e., the number of elements currently cached).