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
Represents a JSON boolean value.
Examples are:
true, false.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JSONBoolean
static final JSONBoolean
private boolean
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TRUE
-
FALSE
-
value
private boolean value
-
-
Constructor Details
-
JSONBoolean
public JSONBoolean(boolean value)
-
-
Method Details
-
getValue
public boolean getValue() -
toString
-
render
Description copied from class:JSONValue
Convert the JSON value into a string representation (JSON representation). -
equals
-
hashCode
public int hashCode() -
strip
Get the Java object, remove all JSON information. In the case of a JSONBoolean, this is a Java Boolean object.
-