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 . |
(package private) JavaScriptObject |
getUnwrapper()
Internal.
|
JSONBoolean |
isBoolean()
Returns
this , as this is a JSONBoolean. |
java.lang.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.public java.lang.String toString()
JavaScriptObject getUnwrapper()
JSONValue
getUnwrapper
in class JSONValue