public class MapTileCache extends Object
Modifier and Type | Field and Description |
---|---|
protected LRUMapTileCache |
mCachedTiles |
protected Object |
mCachedTilesLockObject |
Constructor and Description |
---|
MapTileCache() |
MapTileCache(int aMaximumCacheSize) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsTile(MapTile aTile) |
void |
ensureCapacity(int aCapacity) |
android.graphics.drawable.Drawable |
getMapTile(MapTile aTile) |
void |
putTile(MapTile aTile,
android.graphics.drawable.Drawable aDrawable) |
protected final Object mCachedTilesLockObject
protected LRUMapTileCache mCachedTiles
public MapTileCache()
public MapTileCache(int aMaximumCacheSize)
aMaximumCacheSize
- Maximum amount of MapTiles to be hold within.public void ensureCapacity(int aCapacity)
public android.graphics.drawable.Drawable getMapTile(MapTile aTile)
public void putTile(MapTile aTile, android.graphics.drawable.Drawable aDrawable)
public boolean containsTile(MapTile aTile)
public void clear()
Copyright © 2015. All Rights Reserved.