com.icl.saxon.sort
Class DoubleComparer
java.lang.Object
com.icl.saxon.sort.Comparer
com.icl.saxon.sort.DoubleComparer
- public class DoubleComparer
- extends Comparer
A Comparer used for comparing keys that are Doubles
- Author:
- Michael H. Kay (mhkay@iclway.co.uk)
Method Summary |
int |
compare(Object a,
Object b)
Compare two String objects according to their numeric values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleComparer
public DoubleComparer()
compare
public int compare(Object a,
Object b)
- Compare two String objects according to their numeric values
- Specified by:
compare
in class Comparer
- Returns:
- <0 if a0 if a>b
- Throws:
ClassCastException
- if the objects are of the wrong type for this Comparer