
public class SpatialSingleMaxComparator extends Object implements Comparator<SpatialComparable>
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
dim
Current dimension.
|
| Constructor and Description |
|---|
SpatialSingleMaxComparator(int dim)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(SpatialComparable o1,
SpatialComparable o2) |
void |
setDimension(int dim)
Set the dimension to sort by.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic SpatialSingleMaxComparator(int dim)
dim - Dimension to sort by.public void setDimension(int dim)
dim - Dimensionpublic int compare(SpatialComparable o1, SpatialComparable o2)
compare in interface Comparator<SpatialComparable>