Class JSONNumber


  • public class JSONNumber
    extends JSONValue
    JSON number.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.math.BigDecimal value  
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONNumber​(java.math.BigDecimal value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTo​(JSONTarget<?> target)
      Appends this value to the specified target.
      java.math.BigDecimal getBigDecimal()
      Returns the value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • value

        private final java.math.BigDecimal value
    • Constructor Detail

      • JSONNumber

        JSONNumber​(java.math.BigDecimal value)
    • Method Detail

      • addTo

        public void addTo​(JSONTarget<?> target)
        Description copied from class: JSONValue
        Appends this value to the specified target.
        Specified by:
        addTo in class JSONValue
        Parameters:
        target - the target
      • getBigDecimal

        public java.math.BigDecimal getBigDecimal()
        Returns the value.
        Returns:
        the value