public class JSONInteger extends JSON
Constructor and Description |
---|
JSONInteger(boolean value) |
JSONInteger(int value) |
JSONInteger(java.lang.Integer value) |
JSONInteger(java.lang.String value) |
public JSONInteger(int value)
public JSONInteger(java.lang.Integer value)
public JSONInteger(java.lang.String value)
public JSONInteger(boolean value)
public int getValue()
public void setValue(int value)
value
- the value to setpublic void add(int a)
public void sub(int a)
public void accept(JSONVisitor v)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object