|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nostra13.universalimageloader.cache.memory.BaseMemoryCache<K,V>
public abstract class BaseMemoryCache<K,V>
Base memory cache. Implements common functionality for memory cache. Provides object references ( not strong) storing.
| Constructor Summary | |
|---|---|
BaseMemoryCache()
|
|
| Method Summary | |
|---|---|
void |
clear()
Remove all items from cache |
protected abstract Reference<V> |
createReference(V value)
Creates not strong reference of value |
V |
get(K key)
Returns value by key. |
Collection<K> |
keys()
Returns all keys of cache |
boolean |
put(K key,
V value)
Puts value into cache by key |
void |
remove(K key)
Removes item by key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseMemoryCache()
| Method Detail |
|---|
public V get(K key)
MemoryCacheAware
get in interface MemoryCacheAware<K,V>
public boolean put(K key,
V value)
MemoryCacheAware
put in interface MemoryCacheAware<K,V>public void remove(K key)
MemoryCacheAware
remove in interface MemoryCacheAware<K,V>public Collection<K> keys()
MemoryCacheAware
keys in interface MemoryCacheAware<K,V>public void clear()
MemoryCacheAware
clear in interface MemoryCacheAware<K,V>protected abstract Reference<V> createReference(V value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||