Class CoordinateComparator
- java.lang.Object
-
- org.openjump.core.apitools.comparisonandsorting.CoordinateComparator
-
- All Implemented Interfaces:
Comparator
public class CoordinateComparator extends Object implements Comparator
Comparator class for Sortable objects, sets comparision criteria on the fly -> no need to set them manually before sorting- Author:
- orahn FH Osnabrück - University of Applied Sciences Osnabrück Project PIROL 2005 Daten- und Wissensmanagement
- See Also:
Sortable
-
-
Field Summary
Fields Modifier and Type Field Description protected int
sortFor
static int
SORTFOR_X
static int
SORTFOR_XY
static int
SORTFOR_Y
static int
SORTFOR_Z
-
Constructor Summary
Constructors Constructor Description CoordinateComparator(int sortFor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Object arg0, Object arg1)
int
compare(Sortable one, Sortable two)
int
getSortFor()
void
setSortFor(int sortFor)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-