Package net.sourceforge.jiu.util
Interface ComparatorInterface
- All Known Implementing Classes:
ContouringColorPair
,OctreeNode
,RGBColorComparator
public interface ComparatorInterface
To be able to do sorting in Java 1.1 as defined in java.util.Arrays (which
is only available in Java 1.2 and higher), we offer a java.util.Comparator
clone under a different name: ComparatorInterface.
Sorting will be provided by the
Sort
class of this package.-
Method Summary
-
Method Details
-
compare
Compares the two argument objects and returns their relation. Returns- a value < 0 if
o1
is smaller thano2
, - 0 if
o1
is equal too2
and - a value > 0 if
o1
is greater thano2
.
- a value < 0 if
-