public class DefaultMemoryCache extends java.lang.Object implements ImageMemoryCache
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEBUG |
protected static java.lang.String |
LOG_TAG |
| Constructor and Description |
|---|
DefaultMemoryCache(int cacheSizeInKB) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clear the memory cache
|
void |
delete(java.lang.String key) |
android.graphics.drawable.BitmapDrawable |
get(java.lang.String key)
Get from memory cache.
|
long |
getMaxSize()
max byte
|
long |
getUsedSpace()
used byte
|
void |
set(java.lang.String key,
android.graphics.drawable.BitmapDrawable drawable) |
protected static final boolean DEBUG
protected static final java.lang.String LOG_TAG
public void set(java.lang.String key,
android.graphics.drawable.BitmapDrawable drawable)
set in interface ImageMemoryCachepublic android.graphics.drawable.BitmapDrawable get(java.lang.String key)
get in interface ImageMemoryCachepublic void clear()
clear in interface ImageMemoryCachepublic void delete(java.lang.String key)
delete in interface ImageMemoryCachepublic long getMaxSize()
ImageMemoryCachegetMaxSize in interface ImageMemoryCachepublic long getUsedSpace()
ImageMemoryCachegetUsedSpace in interface ImageMemoryCache