|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.mvstore.rtree.SpatialKey
public class SpatialKey
A unique spatial key.
Constructor Summary | |
---|---|
SpatialKey(long id,
float... minMax)
Create a new key. |
Method Summary | |
---|---|
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()
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpatialKey(long id, float... minMax)
id
- the idminMax
- min x, max x, min y, max y, and so onMethod Detail |
---|
public float min(int dim)
dim
- the dimension
public void setMin(int dim, float x)
dim
- the dimensionx
- the valuepublic float max(int dim)
dim
- the dimension
public void setMax(int dim, float x)
dim
- the dimensionx
- the valuepublic long getId()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public boolean equalsIgnoringId(SpatialKey o)
o
- the other key
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |