Class DecimalDt

    • Constructor Detail

      • DecimalDt

        public DecimalDt()
        Constructor
      • DecimalDt

        public DecimalDt​(BigDecimal theValue)
        Constructor
      • DecimalDt

        public DecimalDt​(double theValue)
        Constructor
      • DecimalDt

        public DecimalDt​(long theValue)
        Constructor
      • DecimalDt

        public DecimalDt​(String theValue)
        Constructor
    • Method Detail

      • encode

        protected String encode​(BigDecimal theValue)
        Description copied from class: BasePrimitive
        Subclasses must override to convert a "coerced" value into an encoded one.
        Specified by:
        encode in class BasePrimitive<BigDecimal>
        Parameters:
        theValue - Will not be null
        Returns:
        May return null if the value does not correspond to anything
      • getValueAsInteger

        public int getValueAsInteger()
        Gets the value as an integer, using BigDecimal.intValue()
      • getValueAsNumber

        public Number getValueAsNumber()
      • parse

        protected BigDecimal parse​(String theValue)
        Description copied from class: BasePrimitive
        Subclasses must override to convert an encoded representation of this datatype into a "coerced" one
        Specified by:
        parse in class BasePrimitive<BigDecimal>
        Parameters:
        theValue - Will not be null
        Returns:
        May return null if the value does not correspond to anything
      • setValueAsInteger

        public void setValueAsInteger​(int theValue)
        Sets a new value using an integer