Class DecimalValue

All Implemented Interfaces:
Comparable<NumericValue>, Iterable<AtomicValue>, AtomicMatchKey, AtomicSequence, GroundedValue, IdentityComparable, Item, Sequence, ConversionResult
Direct Known Subclasses:
BigDecimalValue, IntegerValue

public abstract class DecimalValue extends NumericValue
Abstract class representing the XDM type xs:decimal. An instance of xs:decimal that is also an instance of xs:integer will be implemented as an instance of IntegerValue; every other xs:decimal will be implemented as an instance of BigDecimalValue.
Since:
9.8: in previous releases, the concrete class BigDecimalValue was named DecimalValue, and its instances did not include integers. The new hierarchy is designed to reflect the XDM type hierarchy more faithfully
  • Constructor Details

    • DecimalValue

      public DecimalValue()