Class Comparer

    • Constructor Summary

      Constructors 
      Constructor Description
      Comparer()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract int compare​(java.lang.Object a, java.lang.Object b)
      Compare two objects.
      Comparer setDataType​(java.lang.String dataTypeURI, java.lang.String dataTypeLocalName)
      Set data type.
      Comparer setOrder​(boolean isAscending)
      Set order.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Comparer

        public Comparer()
    • Method Detail

      • compare

        public abstract int compare​(java.lang.Object a,
                                    java.lang.Object b)
        Compare two objects.
        Returns:
        <0 if a0 if a>b
        Throws:
        java.lang.ClassCastException - if the objects are of the wrong type for this Comparer
      • setDataType

        public Comparer setDataType​(java.lang.String dataTypeURI,
                                    java.lang.String dataTypeLocalName)
        Set data type. The comparer has the option of returning a different comparer once it knows the data type
      • setOrder

        public Comparer setOrder​(boolean isAscending)
        Set order. The comparer has the option of returning a different comparer