|
||||||||||
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.UsingFreqLimitedMemoryCache
public class UsingFreqLimitedMemoryCache
Limited bitmap
cache. Provides bitmaps
storing. Size of all stored bitmaps will not to
exceed size limit. When cache reaches limit size then the bitmap which used the least frequently is deleted from
cache.
Constructor Summary | |
---|---|
UsingFreqLimitedMemoryCache(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 |
android.graphics.Bitmap |
get(java.lang.String key)
Returns value by key. |
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 |
---|
keys |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UsingFreqLimitedMemoryCache(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 android.graphics.Bitmap get(java.lang.String key)
MemoryCacheAware
get
in interface MemoryCacheAware<java.lang.String,android.graphics.Bitmap>
get
in class BaseMemoryCache<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 |