|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.common.cache.NullCache<K,V>
public class NullCache<K,V>
Cache implementation that does nothing.
| Constructor Summary | |
|---|---|
NullCache()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullCache()
| Method Detail |
|---|
public void addElement(K key,
V value)
Cache
addElement in interface Cache<K,V>public long getCapacity()
Cache
getCapacity in interface Cache<K,V>public V getElement(K key)
Cache
getElement in interface Cache<K,V>public long getSize()
getSize in interface Cache<K,V>public V removeElement(K key)
Cache
removeElement in interface Cache<K,V>key - The entry to return.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||