Package com.sdicons.json.model
Class JSONBoolean
- java.lang.Object
-
- com.sdicons.json.model.JSONValue
-
- com.sdicons.json.model.JSONSimple
-
- com.sdicons.json.model.JSONBoolean
-
public class JSONBoolean extends JSONSimple
Represents a JSON boolean value. Examples are:true, false.
-
-
Field Summary
Fields Modifier and Type Field Description static JSONBooleanFALSEstatic JSONBooleanTRUEprivate booleanvalue
-
Constructor Summary
Constructors Constructor Description JSONBoolean(boolean value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)booleangetValue()inthashCode()protected java.lang.Stringrender(boolean pretty, java.lang.String indent)Convert the JSON value into a string representation (JSON representation).java.lang.Objectstrip()Get the Java object, remove all JSON information.java.lang.StringtoString()
-
-
-
Field Detail
-
TRUE
public static final JSONBoolean TRUE
-
FALSE
public static final JSONBoolean FALSE
-
value
private boolean value
-
-
Method Detail
-
getValue
public boolean getValue()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
render
protected java.lang.String render(boolean pretty, java.lang.String indent)Description copied from class:JSONValueConvert the JSON value into a string representation (JSON representation).
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-