|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.json.client.JSONValue com.google.gwt.json.client.JSONNumber
public class 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 |
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. |
Methods inherited from class com.google.gwt.json.client.JSONValue |
---|
isArray, isBoolean, isNull, isObject, isString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JSONNumber(double value)
Method Detail |
---|
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.Object
public JSONNumber isNumber()
this
, as this is a JSONNumber.
isNumber
in class JSONValue
null
otherwise.public java.lang.String toString()
toString
in class JSONValue
JavaScriptObject getUnwrapper()
JSONValue
getUnwrapper
in class JSONValue
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |