Class NumericComparer11

  • All Implemented Interfaces:
    java.io.Serializable, AtomicComparer

    public class NumericComparer11
    extends NumericComparer
    A Comparer used for comparing sort keys when data-type="number". The items to be compared are converted to numbers, and the numbers are then compared directly. NaN values compare equal to each other, and equal to an empty sequence, but less than anything else.

    This class is used in XSLT only, so there is no need to handle XQuery's "empty least" vs "empty greatest" options.

    Author:
    Michael H. Kay
    See Also:
    Serialized Form
    • Constructor Detail

      • NumericComparer11

        protected NumericComparer11()