Package net.sf.saxon.value
Class BigDecimalValue.DecimalComparable
- java.lang.Object
-
- net.sf.saxon.value.BigDecimalValue.DecimalComparable
-
- All Implemented Interfaces:
java.lang.Comparable
- Enclosing class:
- BigDecimalValue
protected static class BigDecimalValue.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
-
-
Field Summary
Fields Modifier and Type Field Description protected BigDecimalValue
value
-
Constructor Summary
Constructors Constructor Description DecimalComparable(BigDecimalValue value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimal
asBigDecimal()
int
compareTo(java.lang.Object o)
boolean
equals(java.lang.Object o)
int
hashCode()
-
-
-
Field Detail
-
value
protected BigDecimalValue value
-
-
Constructor Detail
-
DecimalComparable
public DecimalComparable(BigDecimalValue value)
-
-
Method Detail
-
asBigDecimal
public java.math.BigDecimal asBigDecimal()
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-