gov.nasa.worldwind.util
Class TileKey
java.lang.Object
gov.nasa.worldwind.util.TileKey
- All Implemented Interfaces:
- java.lang.Comparable<TileKey>
public class TileKey
- extends java.lang.Object
- implements java.lang.Comparable<TileKey>
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TileKey
public TileKey(Angle latitude,
Angle longitude,
Level level)
- Parameters:
latitude
- longitude
- level
-
- Throws:
java.lang.IllegalArgumentException
- if any parameter is null
TileKey
public TileKey(int level,
int row,
int col,
java.lang.String cacheName)
- Parameters:
level
- row
- col
- cacheName
-
- Throws:
java.lang.IllegalArgumentException
- if level
, row
or column
is negative or if
cacheName
is null or empty
TileKey
public TileKey(Tile tile)
- Parameters:
tile
-
- Throws:
java.lang.IllegalArgumentException
- if tile
is null
compareTo
public final int compareTo(TileKey key)
- Specified by:
compareTo
in interface java.lang.Comparable<TileKey>
- Parameters:
key
-
- Returns:
-
- Throws:
java.lang.IllegalArgumentException
- if key
is null
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
getCacheName
public java.lang.String getCacheName()
getColumn
public int getColumn()
getLevelNumber
public int getLevelNumber()
getRow
public int getRow()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object