Package kong.unirest.modules.gson
Class GsonObject
java.lang.Object
kong.unirest.modules.gson.GsonElement<com.google.gson.JsonObject>
kong.unirest.modules.gson.GsonObject
- All Implemented Interfaces:
JsonEngine.Element
,JsonEngine.Object
public class GsonObject
extends GsonElement<com.google.gson.JsonObject>
implements JsonEngine.Object
-
Field Summary
Fields inherited from class kong.unirest.modules.gson.GsonElement
element
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E extends Enum>
voidvoid
add
(String key, JsonEngine.Element value) void
addProperty
(String key, Boolean value) void
addProperty
(String key, Number value) void
addProperty
(String key, String value) void
addProperty
(String key, JsonEngine.Element value) boolean
keySet()
void
int
size()
Methods inherited from class kong.unirest.modules.gson.GsonElement
equals, getAsBigDecimal, getAsBigInteger, getAsBoolean, getAsDouble, getAsFloat, getAsInt, getAsJsonArray, getAsJsonObject, getAsJsonPrimitive, getAsLong, getAsPrimitive, getAsString, getEngineElement, hashCode, isJsonArray, isJsonNull, isJsonObject, isJsonPrimitive
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface kong.unirest.core.json.JsonEngine.Element
getAsBigDecimal, getAsBigInteger, getAsBoolean, getAsDouble, getAsFloat, getAsInt, getAsJsonArray, getAsJsonObject, getAsJsonPrimitive, getAsLong, getAsPrimitive, getAsString, getEngineElement, isJsonArray, isJsonNull, isJsonObject, isJsonPrimitive
-
Constructor Details
-
GsonObject
GsonObject(com.google.gson.JsonObject element) -
GsonObject
public GsonObject()
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceJsonEngine.Object
-
has
- Specified by:
has
in interfaceJsonEngine.Object
-
get
- Specified by:
get
in interfaceJsonEngine.Object
-
add
- Specified by:
add
in interfaceJsonEngine.Object
-
addProperty
- Specified by:
addProperty
in interfaceJsonEngine.Object
-
addProperty
- Specified by:
addProperty
in interfaceJsonEngine.Object
-
addProperty
- Specified by:
addProperty
in interfaceJsonEngine.Object
-
addProperty
- Specified by:
addProperty
in interfaceJsonEngine.Object
-
remove
- Specified by:
remove
in interfaceJsonEngine.Object
-
add
- Specified by:
add
in interfaceJsonEngine.Object
-
keySet
- Specified by:
keySet
in interfaceJsonEngine.Object
-