public class LRUMapTileCache extends LinkedHashMap<MapTile,android.graphics.drawable.Drawable>
Modifier and Type | Class and Description |
---|---|
static interface |
LRUMapTileCache.TileRemovedListener |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
LRUMapTileCache(int aCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
ensureCapacity(int aCapacity) |
LRUMapTileCache.TileRemovedListener |
getTileRemovedListener() |
android.graphics.drawable.Drawable |
remove(Object aKey) |
protected boolean |
removeEldestEntry(Map.Entry<MapTile,android.graphics.drawable.Drawable> aEldest) |
void |
setTileRemovedListener(LRUMapTileCache.TileRemovedListener tileRemovedListener) |
containsValue, get
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, size, values
equals, hashCode, toString
public void ensureCapacity(int aCapacity)
public android.graphics.drawable.Drawable remove(Object aKey)
public void clear()
protected boolean removeEldestEntry(Map.Entry<MapTile,android.graphics.drawable.Drawable> aEldest)
removeEldestEntry
in class LinkedHashMap<MapTile,android.graphics.drawable.Drawable>
public LRUMapTileCache.TileRemovedListener getTileRemovedListener()
public void setTileRemovedListener(LRUMapTileCache.TileRemovedListener tileRemovedListener)
Copyright © 2015. All Rights Reserved.