public class JSONNumber extends JSONValue
double
s.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(Object other) |
double |
getValue()
Deprecated.
See
doubleValue() |
int |
hashCode() |
JSONNumber |
isNumber()
Returns
this , as this is a JSONNumber. |
String |
toString()
Returns the JSON representation of this number.
|
public JSONNumber(double value)
public double doubleValue()
@Deprecated public double getValue()
doubleValue()
public JSONNumber isNumber()
this
, as this is a JSONNumber.Copyright © 2016. All rights reserved.