EZ JSON
by Nathanaël Cottin

org.ezjson
Class JSONReal

java.lang.Object
  extended by org.ezjson.JSONReal
All Implemented Interfaces:
JSONNumber, JSONValue

public final class JSONReal
extends java.lang.Object
implements JSONNumber

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

Author:
ncottin

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

JSONReal

public JSONReal()
Creates a JSON real with initial value set to 0.0


JSONReal

public JSONReal(double value)
Creates and initializes a JSON real with an initial value

Parameters:
value - The initial value
Method Detail

isInteger

public boolean isInteger()
Indicates that the internal value represents a real value (not limited to an integer value)

Specified by:
isInteger in interface JSONNumber
Returns:
false

getValue

public double getValue()

setValue

public void setValue(double value)

EZ JSON
by Nathanaël Cottin