Package kong.unirest.modules.gson
Class GsonArray
java.lang.Object
kong.unirest.modules.gson.GsonElement<com.google.gson.JsonArray>
kong.unirest.modules.gson.GsonArray
- All Implemented Interfaces:
JsonEngine.Array
,JsonEngine.Element
-
Field Summary
Fields inherited from class kong.unirest.modules.gson.GsonElement
element
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
add
(JsonEngine.Element obj) get
(int index) remove
(int index) void
set
(int index, JsonEngine.Element o) 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
-
GsonArray
GsonArray(com.google.gson.JsonArray jsonElement) -
GsonArray
GsonArray()
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceJsonEngine.Array
-
get
- Specified by:
get
in interfaceJsonEngine.Array
-
add
- Specified by:
add
in interfaceJsonEngine.Array
-
set
- Specified by:
set
in interfaceJsonEngine.Array
-
add
- Specified by:
add
in interfaceJsonEngine.Array
-
add
- Specified by:
add
in interfaceJsonEngine.Array
-
add
- Specified by:
add
in interfaceJsonEngine.Array
-
join
- Specified by:
join
in interfaceJsonEngine.Array
-
put
- Specified by:
put
in interfaceJsonEngine.Array
-
put
- Specified by:
put
in interfaceJsonEngine.Array
-
put
- Specified by:
put
in interfaceJsonEngine.Array
-
remove
- Specified by:
remove
in interfaceJsonEngine.Array
-