EZ JSON
by Nathanaël Cottin

org.ezjson
Class JSONInteger

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

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

A JSON integer is a kind of JSON number which holds an integer value. It is not defined by the JSON specification but has a programmatical interest

Author:
ncottin

Constructor Summary
JSONInteger()
          Creates a JSON integer with initial value set to 0
JSONInteger(int value)
           
 
Method Summary
 int getValue()
           
 boolean isInteger()
          Indicates that the internal value is limited to an integer value (i.e. decimals are not allowed)
 void setValue(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONInteger

public JSONInteger()
Creates a JSON integer with initial value set to 0


JSONInteger

public JSONInteger(int value)
Method Detail

isInteger

public boolean isInteger()
Indicates that the internal value is limited to an integer value (i.e. decimals are not allowed)

Specified by:
isInteger in interface JSONNumber
Returns:
true

getValue

public int getValue()

setValue

public void setValue(int value)

EZ JSON
by Nathanaël Cottin