|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectezvcard.io.json.JsonValue
public class JsonValue
Represents a JSON value, array, or object.
| Constructor Summary | |
|---|---|
JsonValue(List<JsonValue> array)
Creates a JSON array. |
|
JsonValue(Map<String,JsonValue> object)
Creates a JSON object. |
|
JsonValue(Object value)
Creates a JSON value (such as a string or integer). |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
List<JsonValue> |
getArray()
Gets the JSON array elements. |
Map<String,JsonValue> |
getObject()
Gets the JSON object. |
Object |
getValue()
Gets the JSON value. |
int |
hashCode()
|
boolean |
isNull()
Determines if the value is "null" or not. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JsonValue(Object value)
value - the valuepublic JsonValue(List<JsonValue> array)
array - the array elementspublic JsonValue(Map<String,JsonValue> object)
object - the object fields| Method Detail |
|---|
public Object getValue()
public List<JsonValue> getArray()
public Map<String,JsonValue> getObject()
public boolean isNull()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||