|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.json.client.JSONValue com.google.gwt.json.client.JSONBoolean
public class JSONBoolean
Represents a JSON boolean value.
Method Summary | |
---|---|
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. |
Methods inherited from class com.google.gwt.json.client.JSONValue |
---|
isArray, isNull, isNumber, isObject, isString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static JSONBoolean getInstance(boolean b)
true
or false
.
b
- controls which value to get
true
, 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.
isBoolean
in class JSONValue
null
otherwise.public java.lang.String toString()
toString
in class JSONValue
JavaScriptObject getUnwrapper()
JSONValue
getUnwrapper
in class JSONValue
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |