Class CLightningJsonObject
- java.lang.Object
-
- com.google.gson.JsonElement
-
- jrpc.service.converters.jsonwrapper.CLightningJsonObject
-
public class CLightningJsonObject extends com.google.gson.JsonElement
-
-
Constructor Summary
Constructors Constructor Description CLightningJsonObject()
CLightningJsonObject(com.google.gson.JsonObject jsonObject)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.String property, com.google.gson.JsonElement value)
void
add(java.lang.String propriety, java.lang.Object value)
void
addProperty(java.lang.String property, java.lang.Boolean value)
void
addProperty(java.lang.String property, java.lang.Character value)
void
addProperty(java.lang.String property, java.lang.Number value)
void
addProperty(java.lang.String property, java.lang.String value)
com.google.gson.JsonElement
deepCopy()
java.util.Set<java.util.Map.Entry<java.lang.String,com.google.gson.JsonElement>>
entrySet()
boolean
equals(java.lang.Object o)
com.google.gson.JsonElement
get(java.lang.String memberName)
com.google.gson.JsonArray
getAsJsonArray(java.lang.String memberName)
com.google.gson.JsonObject
getAsJsonObject(java.lang.String memberName)
com.google.gson.JsonPrimitive
getAsJsonPrimitive(java.lang.String memberName)
com.google.gson.JsonObject
getWrapper()
boolean
has(java.lang.String memberName)
int
hashCode()
static boolean
isValidJSON(java.lang.String jsonString)
java.util.Set<java.lang.String>
keySet()
void
mapping(com.google.gson.JsonObject jsonObject)
com.google.gson.JsonElement
remove(java.lang.String property)
int
size()
java.lang.String
toString()
-
Methods inherited from class com.google.gson.JsonElement
getAsBigDecimal, getAsBigInteger, getAsBoolean, getAsByte, getAsCharacter, getAsDouble, getAsFloat, getAsInt, getAsJsonArray, getAsJsonNull, getAsJsonObject, getAsJsonPrimitive, getAsLong, getAsNumber, getAsShort, getAsString, isJsonArray, isJsonNull, isJsonObject, isJsonPrimitive
-
-
-
-
Method Detail
-
isValidJSON
public static boolean isValidJSON(java.lang.String jsonString)
-
add
public void add(java.lang.String property, com.google.gson.JsonElement value)
-
remove
public com.google.gson.JsonElement remove(java.lang.String property)
-
addProperty
public void addProperty(java.lang.String property, java.lang.String value)
-
addProperty
public void addProperty(java.lang.String property, java.lang.Number value)
-
addProperty
public void addProperty(java.lang.String property, java.lang.Boolean value)
-
addProperty
public void addProperty(java.lang.String property, java.lang.Character value)
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,com.google.gson.JsonElement>> entrySet()
-
keySet
public java.util.Set<java.lang.String> keySet()
-
size
public int size()
-
has
public boolean has(java.lang.String memberName)
-
get
public com.google.gson.JsonElement get(java.lang.String memberName)
-
getAsJsonPrimitive
public com.google.gson.JsonPrimitive getAsJsonPrimitive(java.lang.String memberName)
-
getAsJsonArray
public com.google.gson.JsonArray getAsJsonArray(java.lang.String memberName)
-
getAsJsonObject
public com.google.gson.JsonObject getAsJsonObject(java.lang.String memberName)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
add
public void add(java.lang.String propriety, java.lang.Object value)
-
mapping
public void mapping(com.google.gson.JsonObject jsonObject)
-
getWrapper
public com.google.gson.JsonObject getWrapper()
-
deepCopy
public com.google.gson.JsonElement deepCopy()
- Specified by:
deepCopy
in classcom.google.gson.JsonElement
-
toString
public java.lang.String toString()
- Overrides:
toString
in classcom.google.gson.JsonElement
-
-