xv.json
Class JSONString
java.lang.Object
xv.json.JSONVariant
xv.json.JSONString
public class JSONString
- extends JSONVariant
A JSON string. Basically wraps a Java string, but keeps the string type in
the JSON type hierarchy.
- Author:
- xv
JSONString
public JSONString(String string)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
getType
public String getType()
- Description copied from class:
JSONVariant
- Returns a string description of the type - one of
"array"
,
"object"
, "boolean"
, "number"
, or "string"
.
- Specified by:
getType
in class JSONVariant
- Returns:
Copyright © 2008-2011. All Rights Reserved.