|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.json.client.JSONValue
com.google.gwt.json.client.JSONNumber
Represents a JSON number. Numbers are represented by double
s.
Constructor Summary | |
JSONNumber(double value)
Creates a new JSONNumber from the double value. |
Method Summary | |
double |
getValue()
Gets the double value that this JSONNumber represents. |
JSONNumber |
isNumber()
Returns this , as this is a JSONNumber. |
java.lang.String |
toString()
Returns the JSON representation of this number. |
Methods inherited from class com.google.gwt.json.client.JSONValue |
isArray, isBoolean, isNull, isObject, isString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JSONNumber(double value)
Method Detail |
public double getValue()
public JSONNumber isNumber()
this
, as this is a JSONNumber.
isNumber
in class JSONValue
null
otherwise.public java.lang.String toString()
toString
in class JSONValue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |