public class SpatialSingleMinComparator extends Object implements Comparator<SpatialComparable>
Modifier and Type | Field and Description |
---|---|
(package private) int |
dim
Current dimension.
|
Constructor and Description |
---|
SpatialSingleMinComparator(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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public SpatialSingleMinComparator(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>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.