| org.apache.oro.util.Cache
All known Subclasses: org.apache.oro.util.GenericCache,
Cache | public interface Cache (Code) | | An interface defining the basic functions of a cache.
version: @version@ since: 1.0 |
Method Summary | |
public void | addElement(Object key, Object value) | public int | capacity() Returns the maximum number of elements that can be cached at one time. | public Object | getElement(Object key) | public int | size() Returns the number of elements in the cache, not to be confused with
the
Cache.capacity() which returns the number
of elements that can be held in the cache at one time. |
capacity | public int capacity()(Code) | | Returns the maximum number of elements that can be cached at one time.
The maximum number of elements that can be cached at one time. |
size | public int size()(Code) | | Returns the number of elements in the cache, not to be confused with
the
Cache.capacity() which returns the number
of elements that can be held in the cache at one time.
The current size of the cache (i.e., the number of elementscurrently cached). |
|
|