public class

JSONBoolean

extends JSONValue
java.lang.Object
   ↳ com.google.gwt.json.client.JSONValue
     ↳ com.google.gwt.json.client.JSONBoolean

Class Overview

Represents a JSON boolean value.

Summary

Public Methods
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.
[Expand]
Inherited Methods
From class com.google.gwt.json.client.JSONValue
From class java.lang.Object

Public Methods

public boolean booleanValue ()

Returns true if this is the instance representing "true", false otherwise.

public static JSONBoolean getInstance (boolean b)

Gets a reference to the singleton instance representing either true or false.

Parameters
b controls which value to get
Returns
  • if true, the JSONBoolean instance representing true is returned; otherwise, the JSONBoolean instance representing false is returned

public JSONBoolean isBoolean ()

Returns this, as this is a JSONBoolean.

Returns
  • a reference to a JSONBoolean if this JSONValue is a JSONBoolean or null otherwise.

public String toString ()

Returns "true" for the true value, and "false" for the false value.