Class Sortable
- java.lang.Object
-
- org.openjump.core.apitools.comparisonandsorting.Sortable
-
- All Implemented Interfaces:
Comparable
- Direct Known Subclasses:
PirolPoint
public abstract class Sortable extends Object implements Comparable
Abstract base class for sortable objects like punkt object. Adds a natural ordering to those objects and allows to change what to sort for.- Author:
- orahn FH Osnabrück - University of Applied Sciences Osnabrück Project PIROL 2005 Daten- und Wissensmanagement
- See Also:
PirolPoint
-
-
Field Summary
Fields Modifier and Type Field Description protected int
sortFor
-
Constructor Summary
Constructors Constructor Description Sortable()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract int
compareTo(Object arg0)
abstract int
getSortFor()
abstract void
setSortFor(int sortFor)
-
-
-
Method Detail
-
getSortFor
public abstract int getSortFor()
-
setSortFor
public abstract void setSortFor(int sortFor)
-
compareTo
public abstract int compareTo(Object arg0)
- Specified by:
compareTo
in interfaceComparable
-
-