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
doubles.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the double value this JSONNumber represents.boolean(package private) JavaScriptObjectInternal.doublegetValue()Deprecated.inthashCode()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:JSONValueInternal. Returns a JS func that can unwrap this value. Used from native code.- Specified by:
getUnwrapperin classJSONValue
-
doubleValue()