Constructor and Description |
---|
ThumbnailCache(int maxSizeBytes) |
Modifier and Type | Method and Description |
---|---|
protected int |
sizeOf(Uri key,
Bitmap value)
Returns the size of the entry for
key and value in
user-defined units. |
create, createCount, entryRemoved, evictAll, evictionCount, get, hitCount, maxSize, missCount, put, putCount, remove, resize, size, snapshot, toString, trimToSize
protected int sizeOf(Uri key, Bitmap value)
LruCache
key
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.