public class SpatialKey
extends java.lang.Object
| Constructor and Description |
|---|
SpatialKey(long id,
float... minMax)
Create a new key.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
boolean |
equalsIgnoringId(SpatialKey o)
Check whether two objects are equals, but do not compare the id fields.
|
long |
getId() |
int |
hashCode() |
boolean |
isNull() |
float |
max(int dim)
Get the maximum value for the given dimension.
|
float |
min(int dim)
Get the minimum value for the given dimension.
|
void |
setMax(int dim,
float x)
Set the maximum value for the given dimension.
|
void |
setMin(int dim,
float x)
Set the minimum value for the given dimension.
|
java.lang.String |
toString() |
public SpatialKey(long id,
float... minMax)
id - the idminMax - min x, max x, min y, max y, and so onpublic float min(int dim)
dim - the dimensionpublic void setMin(int dim,
float x)
dim - the dimensionx - the valuepublic float max(int dim)
dim - the dimensionpublic void setMax(int dim,
float x)
dim - the dimensionx - the valuepublic long getId()
public boolean isNull()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic boolean equalsIgnoringId(SpatialKey o)
o - the other key