com.xtremelabs.imageutils
Class AdvancedMemoryLRUCacher

java.lang.Object
  extended by com.xtremelabs.imageutils.AdvancedMemoryLRUCacher
All Implemented Interfaces:
ImageMemoryCacherInterface

public class AdvancedMemoryLRUCacher
extends java.lang.Object
implements ImageMemoryCacherInterface


Constructor Summary
AdvancedMemoryLRUCacher()
           
 
Method Summary
 void cacheBitmap(Bitmap bitmap, DecodeSignature decodeSignature)
           
 void clearCache()
           
 Bitmap getBitmap(DecodeSignature decodeSignature)
           
 long getCurrentActualSize()
           
 int getNumImagesInCache()
           
 long getSize()
           
 void removeAllImagesForUri(java.lang.String uri)
           
 void setMaximumCacheSize(long size)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvancedMemoryLRUCacher

public AdvancedMemoryLRUCacher()
Method Detail

getBitmap

public Bitmap getBitmap(DecodeSignature decodeSignature)
Specified by:
getBitmap in interface ImageMemoryCacherInterface

cacheBitmap

public void cacheBitmap(Bitmap bitmap,
                        DecodeSignature decodeSignature)
Specified by:
cacheBitmap in interface ImageMemoryCacherInterface

clearCache

public void clearCache()
Specified by:
clearCache in interface ImageMemoryCacherInterface

setMaximumCacheSize

public void setMaximumCacheSize(long size)
Specified by:
setMaximumCacheSize in interface ImageMemoryCacherInterface

getNumImagesInCache

public int getNumImagesInCache()

getSize

public long getSize()

getCurrentActualSize

public long getCurrentActualSize()

removeAllImagesForUri

public void removeAllImagesForUri(java.lang.String uri)
Specified by:
removeAllImagesForUri in interface ImageMemoryCacherInterface