Class JSONNumber
Represents a JSON number. Numbers are represented by
doubles.
Constructors
Methods
| getValue() | Gets the double value that this JSONNumber represents. |
| isNumber() | Returns this, as this is a JSONNumber. |
| toString() | Returns the JSON representation of this number. |
Constructor Detail
JSONNumber
public JSONNumber(double value)
Creates a new JSONNumber from the double value.
Parameters
- value
-
Method Detail
getValue
public double getValue()
Gets the double value that this JSONNumber represents.
isNumber
Returns
this, as this is a JSONNumber.
toString
Returns the JSON representation of this number.