public interface Cache<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(K key,
V value)
Stores an entry into the cache.
|
long |
getCapacity()
Returns the capacity of the cache.
|
V |
getElement(K key)
Retrieves an entry for the cache.
|
long |
getSize() |
V |
removeElement(K key)
Removes an entry from the cache.
|
V getElement(K key)
V removeElement(K key)
key - The entry to return.long getCapacity()
long getSize()
Copyright © 2007-2012. All Rights Reserved.