|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nostra13.universalimageloader.cache.memory.BaseMemoryCache
public abstract class BaseMemoryCache
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<android.graphics.Bitmap> |
createReference(android.graphics.Bitmap value)
Creates not strong reference of value |
android.graphics.Bitmap |
get(String key)
Returns value by key. |
Collection<String> |
keys()
Returns all keys of cache |
boolean |
put(String key,
android.graphics.Bitmap value)
Puts value into cache by key |
android.graphics.Bitmap |
remove(String 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 android.graphics.Bitmap get(String key)
MemoryCacheAware
get
in interface MemoryCacheAware<String,android.graphics.Bitmap>
public boolean put(String key, android.graphics.Bitmap value)
MemoryCacheAware
put
in interface MemoryCacheAware<String,android.graphics.Bitmap>
public android.graphics.Bitmap remove(String key)
MemoryCacheAware
remove
in interface MemoryCacheAware<String,android.graphics.Bitmap>
public Collection<String> keys()
MemoryCacheAware
keys
in interface MemoryCacheAware<String,android.graphics.Bitmap>
public void clear()
MemoryCacheAware
clear
in interface MemoryCacheAware<String,android.graphics.Bitmap>
protected abstract Reference<android.graphics.Bitmap> createReference(android.graphics.Bitmap value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |