SpatialKey
A unique spatial key.
| Methods |
|
SpatialKey(long id, float... minMax)
Create a new key.
|
|
SpatialKey(long id, float... minMax)
Create a new key.
Parameters:
id - the id
minMax - min x, max x, min y, max y, and so on
|
| boolean |
equals(Object other)
|
| boolean |
equals(Object other)
|
| boolean |
equalsIgnoringId(SpatialKey o)
Check whether two objects are equals, but do not compare the id fields.
|
| boolean |
equalsIgnoringId(SpatialKey o)
Check whether two objects are equals, but do not compare the id fields.
Parameters:
o - the other key
Returns:
true if the contents are the same
|
| long |
getId()
|
| long |
getId()
|
| int |
hashCode()
|
| int |
hashCode()
|
| boolean |
isNull()
|
| boolean |
isNull()
|
| float |
max(int dim)
Get the maximum value for the given dimension.
|
| float |
max(int dim)
Get the maximum value for the given dimension.
Parameters:
dim - the dimension
Returns:
the value
|
| float |
min(int dim)
Get the minimum value for the given dimension.
|
| float |
min(int dim)
Get the minimum value for the given dimension.
Parameters:
dim - the dimension
Returns:
the value
|
| void |
setMax(int dim, float x)
Set the maximum value for the given dimension.
|
| void |
setMax(int dim, float x)
Set the maximum value for the given dimension.
Parameters:
dim - the dimension
x - the value
|
| void |
setMin(int dim, float x)
Set the minimum value for the given dimension.
|
| void |
setMin(int dim, float x)
Set the minimum value for the given dimension.
Parameters:
dim - the dimension
x - the value
|
| String |
toString()
|
| String |
toString()
|
|