coreComponents
Class DoubleWithIndexComparator
java.lang.Object
|
+--coreComponents.DoubleWithIndexComparator
- All Implemented Interfaces:
- java.util.Comparator
- public class DoubleWithIndexComparator
- extends java.lang.Object
- implements java.util.Comparator
Class used for sorting an indexed list of double values
- Version:
- $Revision 1.00$
- Author:
- David Lindsay (davidl@cs.rhul.ac.uk)
Method Summary |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
How to compare the double values |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
DoubleWithIndexComparator
public DoubleWithIndexComparator()
- Constructor for the comparator class
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- How to compare the double values
- Specified by:
compare
in interface java.util.Comparator
Copyright (c)
2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London