net.sf.extjwnl.util.cache
Interface Cache<K,V>
- All Superinterfaces:
- Map<K,V>
- All Known Implementing Classes:
- LRUCache
public interface Cache<K,V>
- extends Map<K,V>
A Cache
is a collection of values that are indexed by keys and that are stored for an
unspecified amount of time (which the implementor of Cache
may further specify).
- Author:
- John Didion , Aliaksandr Autayeu
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Method Summary |
long |
getCapacity()
Returns the maximum number of elements the cache can hold. |
void |
setCapacity(long capacity)
Sets the maximum number of elements the cache can hold. |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
getCapacity
long getCapacity()
- Returns the maximum number of elements the cache can hold.
- Returns:
- the maximum number of elements the cache can hold
setCapacity
void setCapacity(long capacity)
- Sets the maximum number of elements the cache can hold.
- Parameters:
capacity
- capacity
Copyright © 2013. All Rights Reserved.