public class LRUMapTileCache extends LinkedHashMap<MapTile,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() |
Drawable |
remove(Object aKey) |
protected boolean |
removeEldestEntry(Map.Entry<MapTile,Drawable> aEldest) |
void |
setTileRemovedListener(LRUMapTileCache.TileRemovedListener tileRemovedListener) |
containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, replace, replace, size
public void ensureCapacity(int aCapacity)
public Drawable remove(Object aKey)
public void clear()
protected boolean removeEldestEntry(Map.Entry<MapTile,Drawable> aEldest)
removeEldestEntry
in class LinkedHashMap<MapTile,Drawable>
public LRUMapTileCache.TileRemovedListener getTileRemovedListener()
public void setTileRemovedListener(LRUMapTileCache.TileRemovedListener tileRemovedListener)