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
o1is smaller thano2, - 0 if
o1is equal too2and - a value > 0 if
o1is greater thano2.
- a value < 0 if
-