
public class JSONBoolean extends JSONValue
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanValue()
Returns
true if this is the instance representing "true",
false otherwise. |
static JSONBoolean |
getInstance(boolean b)
Gets a reference to the singleton instance representing either
true or false. |
JSONBoolean |
isBoolean()
Returns
this, as this is a JSONBoolean. |
String |
toString()
Returns "true" for the true value, and "false" for the false value.
|
public static JSONBoolean getInstance(boolean b)
true or false.b - controls which value to gettrue, the JSONBoolean instance representing
true is returned; otherwise, the JSONBoolean
instance representing false is returnedpublic boolean booleanValue()
true if this is the instance representing "true",
false otherwise.public JSONBoolean isBoolean()
this, as this is a JSONBoolean.Copyright © 2018. All rights reserved.