- java.lang.Object
-
- com.github.wnameless.json.base.GsonJsonValue
-
- All Implemented Interfaces:
JsonValueBase<GsonJsonValue>
public final class GsonJsonValue extends Object implements JsonValueBase<GsonJsonValue>
-
-
Constructor Summary
Constructors Constructor Description GsonJsonValue(com.google.gson.JsonElement jsonValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GsonJsonArrayasArray()booleanasBoolean()doubleasDouble()intasInt()longasLong()GsonJsonObjectasObject()StringasString()booleanequals(Object o)inthashCode()booleanisArray()booleanisBoolean()booleanisNull()booleanisNumber()booleanisObject()booleanisString()StringtoString()
-
-
-
Method Detail
-
isObject
public boolean isObject()
- Specified by:
isObjectin interfaceJsonValueBase<GsonJsonValue>
-
isArray
public boolean isArray()
- Specified by:
isArrayin interfaceJsonValueBase<GsonJsonValue>
-
isNumber
public boolean isNumber()
- Specified by:
isNumberin interfaceJsonValueBase<GsonJsonValue>
-
isString
public boolean isString()
- Specified by:
isStringin interfaceJsonValueBase<GsonJsonValue>
-
isBoolean
public boolean isBoolean()
- Specified by:
isBooleanin interfaceJsonValueBase<GsonJsonValue>
-
isNull
public boolean isNull()
- Specified by:
isNullin interfaceJsonValueBase<GsonJsonValue>
-
asObject
public GsonJsonObject asObject()
- Specified by:
asObjectin interfaceJsonValueBase<GsonJsonValue>
-
asArray
public GsonJsonArray asArray()
- Specified by:
asArrayin interfaceJsonValueBase<GsonJsonValue>
-
asInt
public int asInt()
- Specified by:
asIntin interfaceJsonValueBase<GsonJsonValue>
-
asLong
public long asLong()
- Specified by:
asLongin interfaceJsonValueBase<GsonJsonValue>
-
asDouble
public double asDouble()
- Specified by:
asDoublein interfaceJsonValueBase<GsonJsonValue>
-
asString
public String asString()
- Specified by:
asStringin interfaceJsonValueBase<GsonJsonValue>
-
asBoolean
public boolean asBoolean()
- Specified by:
asBooleanin interfaceJsonValueBase<GsonJsonValue>
-
-