public class GsonJsonObject extends GsonJsonElement implements JzonObject
| Constructor and Description |
|---|
GsonJsonObject(com.google.gson.JsonObject wrapped) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String key,
JzonElement prop)
Adds an element with the given key.
|
void |
addProperty(String key,
int prop)
Adds an integer with the given key.
|
Collection<? extends Map.Entry<String,JzonElement>> |
entrySet() |
JzonElement |
get(String key)
Returns element at given key.
|
boolean |
has(String key)
Returns if this object has an element with the given key.
|
void |
remove(String key)
Removes an element with the given key.
|
String |
toString() |
equals, hashCode, isJsonArray, isJsonNull, isJsonObject, isJsonPrimitive, unwrapclone, finalize, getClass, notify, notifyAll, wait, wait, waitisJsonArray, isJsonNull, isJsonObject, isJsonPrimitive, unwrappublic boolean has(String key)
JzonObjecthas in interface JzonObjectkey - - the key to look forpublic void add(String key, JzonElement prop)
JzonObjectadd in interface JzonObjectkey - - the key for the new elementpublic void addProperty(String key, int prop)
JzonObjectaddProperty in interface JzonObjectkey - - the key for the new integerpublic Collection<? extends Map.Entry<String,JzonElement>> entrySet()
entrySet in interface JzonObjectpublic JzonElement get(String key)
JzonObjectget in interface JzonObjectkey - - key to look forpublic void remove(String key)
JzonObjectremove in interface JzonObjectkey - - key to look forpublic String toString()
toString in class GsonJsonElementCopyright © 2015. All Rights Reserved.