xv.json
Class JSONBoolean

java.lang.Object
  extended by xv.json.JSONVariant
      extended by xv.json.JSONBoolean

public class JSONBoolean
extends JSONVariant

Represents a JSON boolean.

Author:
xv

Field Summary
static JSONBoolean FALSE
           
static JSONBoolean TRUE
           
 
Method Summary
 boolean booleanValue()
          Gets the value of the boolean as a Java boolean.
 boolean equals(Object obj)
           
 String getType()
          Returns "boolean".
 int hashCode()
           
static JSONBoolean valueOf(boolean bool)
          Returns a JSONBoolean representing the given Java boolean.
 
Methods inherited from class xv.json.JSONVariant
toJSON, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRUE

public static final JSONBoolean TRUE

FALSE

public static final JSONBoolean FALSE
Method Detail

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.