public abstract class BaseMemoryCache extends Object implements MemoryCache
| Constructor and Description |
|---|
BaseMemoryCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all items from cache
|
protected abstract Reference<android.graphics.Bitmap> |
createReference(android.graphics.Bitmap value)
Creates not strong reference of value
|
android.graphics.Bitmap |
get(String key)
Returns value by key.
|
Collection<String> |
keys()
Returns all keys of cache
|
boolean |
put(String key,
android.graphics.Bitmap value)
Puts value into cache by key
|
android.graphics.Bitmap |
remove(String key)
Removes item by key
|
public android.graphics.Bitmap get(String key)
MemoryCacheget in interface MemoryCachepublic boolean put(String key, android.graphics.Bitmap value)
MemoryCacheput in interface MemoryCachepublic android.graphics.Bitmap remove(String key)
MemoryCacheremove in interface MemoryCachepublic Collection<String> keys()
MemoryCachekeys in interface MemoryCachepublic void clear()
MemoryCacheclear in interface MemoryCacheprotected abstract Reference<android.graphics.Bitmap> createReference(android.graphics.Bitmap value)
Copyright © 2011-2015. All Rights Reserved.