Class JSONBoolean
Represents a JSON boolean value.
Methods
booleanValue() | Returns true if this is the instance representing "true",
false otherwise. |
getInstance(boolean) | Gets a reference to the singleton instance representing either
true or false . |
isBoolean() | Returns this , as this is a JSONBoolean. |
toString() | Returns "true" for the true value, and "false" for the false value. |
Method Detail
booleanValue
public boolean booleanValue()
Returns
true
if this is the instance representing "true",
false
otherwise.
getInstance
Gets a reference to the singleton instance representing either
true
or
false
.
Parameters
- b
- controls which value to get
Return Value
if
true
, the JSONBoolean instance representing
true
is returned; otherwise, the JSONBoolean
instance representing
false
is returned
isBoolean
Returns
this
, as this is a JSONBoolean.
toString
Returns "true" for the true value, and "false" for the false value.