Package net.sf.saxon.expr.sort

## Class DecimalSortComparer

- java.lang.Object
- - net.sf.saxon.expr.sort.ComparableAtomicValueComparer
  - - net.sf.saxon.expr.sort.DecimalSortComparer

- All Implemented Interfaces:
    `AtomicComparer`

      public class DecimalSortComparer
      extends ComparableAtomicValueComparer

  An AtomicComparer used for sorting values that are known to be instances of xs:decimal (including xs:integer), It also supports a separate method for getting a collation key to test equality of items

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static DecimalSortComparer` | `getDecimalSortComparerInstance()` |
    `java.lang.String` | `save()` | Create a string representation of this AtomicComparer that can be saved in a compiled package and used to reconstitute the AtomicComparer when the package is reloaded

    - ### Methods inherited from class net.sf.saxon.expr.sort.ComparableAtomicValueComparer

      `compareAtomicValues, comparesEqual, getCollator, getInstance, provideContext`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getDecimalSortComparerInstance

          public static DecimalSortComparer getDecimalSortComparerInstance()

    - #### save

          public java.lang.String save()

      Create a string representation of this AtomicComparer that can be saved in a compiled package and used to reconstitute the AtomicComparer when the package is reloaded
      Specified by:
        `save` in interface `AtomicComparer`
      Overrides:
        `save` in class `ComparableAtomicValueComparer`
      Returns:
        a string representation of the AtomicComparer