public class JSONString extends JSONValue
Constructor and Description |
---|
JSONString(String value)
Creates a new JSONString from the supplied String.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
JSONString |
isString()
Returns
this , as this is a JSONString. |
String |
stringValue()
Returns the raw Java string value of this item.
|
String |
toString()
Returns the JSON formatted value of this string, quoted for evaluating in a
JavaScript interpreter.
|
public JSONString(String value)
value
- a String valueNullPointerException
- if value
is null
public JSONString isString()
this
, as this is a JSONString.public String stringValue()
Copyright © 2018. All rights reserved.