public class CastedBitmapLruMemoryCache extends LruMemoryCache<String,Object>
| Constructor and Description |
|---|
CastedBitmapLruMemoryCache(android.content.Context c) |
CastedBitmapLruMemoryCache(int maxSize)
Creates a new cache for storing bitmaps.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isForType(Object value)
Determines if the the cache implementation can store values of the given (already parsed) value
|
protected int |
sizeOf(String key,
CacheEntry<Object> entry)
Returns the size of the entry for
key and value in
user-defined units. |
clear, get, onLowMemory, put, put, remove, updateExpirationTimestamppublic CastedBitmapLruMemoryCache(int maxSize)
maxSize - The max size in bytespublic CastedBitmapLruMemoryCache(android.content.Context c)
protected int sizeOf(String key, CacheEntry<Object> entry)
LruMemoryCachekey and value in
user-defined units. The default implementation returns 1 so that size
is the number of entries and max size is the maximum number of entries.
An entry's size must not change while it is in the cache.
sizeOf in class LruMemoryCache<String,Object>public boolean isForType(Object value)
MemoryCacheCopyright © 2015 Hannes Dorfmann. All rights reserved.