public class SpatialKey extends Object
Constructor and Description |
---|
SpatialKey(long id,
float... minMax)
Create a new key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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.
|
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 boolean equalsIgnoringId(SpatialKey o)
o
- the other keyCopyright © 2020 JBoss by Red Hat. All rights reserved.