org.xerial.json
Class JSONBoolean
java.lang.Object
org.xerial.json.JSONValueBase
org.xerial.json.JSONBoolean
- All Implemented Interfaces:
- JSONValue
public class JSONBoolean
- extends JSONValueBase
JSONBoolean
public JSONBoolean(boolean b)
JSONBoolean
public JSONBoolean(String text)
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

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