public class JSONNumber extends JSONValue
doubles.| Constructor and Description |
|---|
JSONNumber(double value)
Creates a new JSONNumber from the double value.
|
| Modifier and Type | Method and Description |
|---|---|
double |
doubleValue()
Gets the double value this JSONNumber represents.
|
boolean |
equals(java.lang.Object other) |
(package private) JavaScriptObject |
getUnwrapper()
Internal.
|
double |
getValue()
Deprecated.
See
doubleValue() |
int |
hashCode() |
JSONNumber |
isNumber()
Returns
this, as this is a JSONNumber. |
java.lang.String |
toString()
Returns the JSON representation of this number.
|
public JSONNumber(double value)
public double doubleValue()
public boolean equals(java.lang.Object other)
equals in class java.lang.Object@Deprecated public double getValue()
doubleValue()public int hashCode()
hashCode in class java.lang.Objectpublic JSONNumber isNumber()
this, as this is a JSONNumber.public java.lang.String toString()
JavaScriptObject getUnwrapper()
JSONValuegetUnwrapper in class JSONValue