Class DecimalValue.DecimalComparable

  • All Implemented Interfaces:
    java.lang.Comparable
    Enclosing class:
    DecimalValue

    protected static class DecimalValue.DecimalComparable
    extends java.lang.Object
    implements java.lang.Comparable
    A Comparable that performs comparison of a DecimalValue either with another DecimalValue or with some other representation of an XPath numeric value
    • Constructor Detail

      • DecimalComparable

        public DecimalComparable​(DecimalValue value)
    • Method Detail

      • asBigDecimal

        public java.math.BigDecimal asBigDecimal()
      • compareTo

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object