xv.json
Class JSONBoolean
java.lang.Object
xv.json.JSONVariant
xv.json.JSONBoolean
public class JSONBoolean
- extends JSONVariant
Represents a JSON boolean.
- Author:
- xv
TRUE
public static final JSONBoolean TRUE
FALSE
public static final JSONBoolean FALSE
booleanValue
public boolean booleanValue()
- Gets the value of the boolean as a Java boolean.
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
valueOf
public static JSONBoolean valueOf(boolean bool)
- Returns a
JSONBoolean
representing the given Java boolean.
- Parameters:
bool
-
- Returns:
getType
public String getType()
- Returns
"boolean"
.
- Specified by:
getType
in class JSONVariant
- Returns:
Copyright © 2008-2011. All Rights Reserved.