Package com.google.gwt.json.client
Class JSONNumber
java.lang.Object
com.google.gwt.json.client.JSONValue
com.google.gwt.json.client.JSONNumber
Represents a JSON number. Numbers are represented by
double
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the double value this JSONNumber represents.boolean
(package private) JavaScriptObject
Internal.double
getValue()
Deprecated.int
hashCode()
isNumber()
Returnsthis
, as this is a JSONNumber.toString()
Returns the JSON representation of this number.
-
Constructor Details
-
JSONNumber
public JSONNumber(double value) Creates a new JSONNumber from the double value.
-
-
Method Details
-
doubleValue
public double doubleValue()Gets the double value this JSONNumber represents. -
equals
-
getValue
Deprecated.SeedoubleValue()
Gets the double value this JSONNumber represents. -
hashCode
public int hashCode() -
isNumber
Returnsthis
, as this is a JSONNumber. -
toString
Returns the JSON representation of this number. -
getUnwrapper
JavaScriptObject getUnwrapper()Description copied from class:JSONValue
Internal. Returns a JS func that can unwrap this value. Used from native code.- Specified by:
getUnwrapper
in classJSONValue
-
doubleValue()