| Constructor and Description |
|---|
NullCache() |
| 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.
|
public void addElement(K key, V value)
CacheaddElement in interface Cache<K,V>public long getCapacity()
CachegetCapacity in interface Cache<K,V>public V getElement(K key)
CachegetElement in interface Cache<K,V>public long getSize()
Copyright © 2007-2012. All Rights Reserved.