|
EZ JSON by Nathanaël Cottin |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ezjson.JSONReal
public final class JSONReal
A JSON real is a kind of JSON number which holds a real value. It is not defined by the JSON specification but has a programmatical interest
Constructor Summary | |
---|---|
JSONReal()
Creates a JSON real with initial value set to 0.0 |
|
JSONReal(double value)
Creates and initializes a JSON real with an initial value |
Method Summary | |
---|---|
double |
getValue()
|
boolean |
isInteger()
Indicates that the internal value represents a real value (not limited to an integer value) |
void |
setValue(double value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSONReal()
public JSONReal(double value)
value
- The initial valueMethod Detail |
---|
public boolean isInteger()
isInteger
in interface JSONNumber
public double getValue()
public void setValue(double value)
|
EZ JSON by Nathanaël Cottin |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |