public class TileKey extends Object implements Comparable<TileKey>
| Constructor and Description |
|---|
TileKey(Angle latitude,
Angle longitude,
LevelSet levelSet,
int levelNumber) |
TileKey(int level,
int row,
int col,
String cacheName) |
TileKey(Tile tile) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TileKey key)
Compare two tile keys.
|
boolean |
equals(Object o) |
String |
getCacheName() |
int |
getColumn() |
int |
getLevelNumber() |
int |
getRow() |
int |
hashCode() |
String |
toString() |
public TileKey(Angle latitude, Angle longitude, LevelSet levelSet, int levelNumber)
latitude - longitude - levelNumber - IllegalArgumentException - if any parameter is nullpublic TileKey(int level,
int row,
int col,
String cacheName)
level - row - col - cacheName - IllegalArgumentException - if level, row or column is negative or if
cacheName is null or emptypublic TileKey(Tile tile)
tile - IllegalArgumentException - if tile is nullpublic final int compareTo(TileKey key)
compareTo in interface Comparable<TileKey>key - Key to compare with.key. -1 if this key < key.IllegalArgumentException - if key is nullpublic String getCacheName()
public int getColumn()
public int getLevelNumber()
public int getRow()