com.icl.saxon.sort

Class DoubleComparer

public class DoubleComparer extends Comparer

A Comparer used for comparing keys that are Doubles

Author: Michael H. Kay

Method Summary
intcompare(Object a, Object b)
Compare two String objects according to their numeric values

Method Detail

compare

public int compare(Object a, Object b)
Compare two String objects according to their numeric values

Returns: <0 if a0 if a>b

Throws: ClassCastException if the objects are of the wrong type for this Comparer