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 intsortForstatic intSORTFOR_Xstatic intSORTFOR_XYstatic intSORTFOR_Ystatic intSORTFOR_Z
-
Constructor Summary
Constructors Constructor Description CoordinateComparator(int sortFor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Object arg0, Object arg1)intcompare(Sortable one, Sortable two)intgetSortFor()voidsetSortFor(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
-
-