|
||||||||||
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>
com.nostra13.universalimageloader.cache.memory.LimitedMemoryCache<java.lang.String,android.graphics.Bitmap>
com.nostra13.universalimageloader.cache.memory.impl.FIFOLimitedMemoryCache
public class FIFOLimitedMemoryCache
Limited bitmap
cache. Provides bitmaps
storing. Size of all stored bitmaps will not to
exceed size limit. When cache reaches limit size then cache clearing is processed by FIFO principle.
Constructor Summary | |
---|---|
FIFOLimitedMemoryCache(int sizeLimit)
|
Method Summary | |
---|---|
void |
clear()
Remove all items from cache |
protected java.lang.ref.Reference<android.graphics.Bitmap> |
createReference(android.graphics.Bitmap value)
Creates not strong reference of value |
protected int |
getSize(android.graphics.Bitmap value)
|
boolean |
put(java.lang.String key,
android.graphics.Bitmap value)
Puts value into cache by key |
void |
remove(java.lang.String key)
Removes item by key |
protected android.graphics.Bitmap |
removeNext()
|
Methods inherited from class com.nostra13.universalimageloader.cache.memory.LimitedMemoryCache |
---|
getSizeLimit |
Methods inherited from class com.nostra13.universalimageloader.cache.memory.BaseMemoryCache |
---|
get, keys |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FIFOLimitedMemoryCache(int sizeLimit)
Method Detail |
---|
public boolean put(java.lang.String key, android.graphics.Bitmap value)
MemoryCacheAware
put
in interface MemoryCacheAware<java.lang.String,android.graphics.Bitmap>
put
in class LimitedMemoryCache<java.lang.String,android.graphics.Bitmap>
public void remove(java.lang.String key)
MemoryCacheAware
remove
in interface MemoryCacheAware<java.lang.String,android.graphics.Bitmap>
remove
in class LimitedMemoryCache<java.lang.String,android.graphics.Bitmap>
public void clear()
MemoryCacheAware
clear
in interface MemoryCacheAware<java.lang.String,android.graphics.Bitmap>
clear
in class LimitedMemoryCache<java.lang.String,android.graphics.Bitmap>
protected int getSize(android.graphics.Bitmap value)
getSize
in class LimitedMemoryCache<java.lang.String,android.graphics.Bitmap>
protected android.graphics.Bitmap removeNext()
removeNext
in class LimitedMemoryCache<java.lang.String,android.graphics.Bitmap>
protected java.lang.ref.Reference<android.graphics.Bitmap> createReference(android.graphics.Bitmap value)
BaseMemoryCache
createReference
in class BaseMemoryCache<java.lang.String,android.graphics.Bitmap>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |