Class JSONBoolean
java.lang.Object
ch.epfl.cs107.play.data.json.JSONValue
ch.epfl.cs107.play.data.json.JSONBoolean
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleangetValue()Returns the boolean value of this JSON boolean.protected StringSerializes the implementing class to a JSON-formatted string.static JSONBooleanvalueOf(boolean value)
-
Field Details
-
FALSE
-
TRUE
-
-
Method Details
-
valueOf
-
getValue
public boolean getValue()Returns the boolean value of this JSON boolean. -
toJSONString
Description copied from class:JSONValueSerializes the implementing class to a JSON-formatted string.- Specified by:
toJSONStringin classJSONValue- Returns:
- A JSON-formatted string representation of the object.
-