public class TileCacheKey
extends java.lang.Object
TileCacheKey
object stores a pair of values: a tile source,
and a tile position, that can be used in a TileCache
to store and recall
a specific tile.Constructor and Description |
---|
TileCacheKey(TileSource source,
TilingScheme.TilePosition pos)
Creates a new cache key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static void |
main(java.lang.String[] argv)
Tests this class.
|
java.lang.String |
toString() |
public TileCacheKey(TileSource source, TilingScheme.TilePosition pos)
source
- the source for the tiles.pos
- the position of the tile in the scheme.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] argv) throws java.lang.Exception
argv
- the array of command line parameters.java.lang.Exception