org.xerial.json
Class JSONBoolean

java.lang.Object
  extended by org.xerial.json.JSONValueBase
      extended by org.xerial.json.JSONBoolean
All Implemented Interfaces:
JSONValue

public class JSONBoolean
extends JSONValueBase


Constructor Summary
JSONBoolean(boolean b)
           
JSONBoolean(String text)
           
 
Method Summary
 boolean equals(Object o)
           
 JSONBoolean getJSONBoolean()
           
 boolean getValue()
           
 JSONValueType getValueType()
          Gets the JSON value type of this value
 String toString()
           
 
Methods inherited from class org.xerial.json.JSONValueBase
getJSONArray, getJSONNull, getJSONNumber, getJSONObject, getJSONString, join, toJSONString, translateAsJSONValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSONBoolean

public JSONBoolean(boolean b)

JSONBoolean

public JSONBoolean(String text)
Method Detail

getValue

public boolean getValue()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getJSONBoolean

public JSONBoolean getJSONBoolean()
Specified by:
getJSONBoolean in interface JSONValue
Overrides:
getJSONBoolean in class JSONValueBase
Returns:
JSONBoolean representation of this object if this instance is a JSONBoolean, otherwise null

getValueType

public JSONValueType getValueType()
Description copied from interface: JSONValue
Gets the JSON value type of this value

Returns:
the JSONValueType


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.