Class NumberField

  • All Implemented Interfaces:
    Field

    public class NumberField
    extends Object
    implements Field
    • Constructor Detail

      • NumberField

        public NumberField()
    • Method Detail

      • getRawLong

        public Long getRawLong()
        The raw Long representation of the field
        Returns:
        The Long value
        Throws:
        ArithmeticException - if this has a nonzero fractional part, or will not fit in a long
      • getRawInteger

        public Integer getRawInteger()
        The raw Integer representation of the field
        Returns:
        The Integer value
        Throws:
        ArithmeticException - if this has a nonzero fractional part, or will not fit in a int
      • getRaw

        public BigDecimal getRaw()
        The raw numeric value of the field
        Specified by:
        getRaw in interface Field
        Returns:
        the raw value
      • setRaw

        public NumberField setRaw​(BigDecimal raw)
        The raw numeric value of the field
        Parameters:
        raw - the raw value
        Returns:
        this.