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