public class MapperManager
extends java.lang.Object
| Constructor and Description |
|---|
MapperManager() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convertValue(com.google.gson.JsonElement input,
java.lang.Class clazz) |
int |
elementToInt(com.google.gson.JsonElement element,
java.lang.String field) |
java.lang.Long |
elementToLong(com.google.gson.JsonElement element) |
java.lang.Long |
elementToLong(com.google.gson.JsonElement element,
java.lang.String field) |
java.lang.String |
elementToString(com.google.gson.JsonElement element) |
java.lang.String |
elementToString(com.google.gson.JsonElement element,
java.lang.String field) |
<T> T |
fromJson(java.lang.String input,
java.lang.Class<T> clazz) |
com.google.gson.JsonElement |
getArrayElement(com.google.gson.JsonElement element,
int index) |
java.util.Iterator<com.google.gson.JsonElement> |
getArrayIterator(com.google.gson.JsonElement element) |
java.util.Iterator<com.google.gson.JsonElement> |
getArrayIterator(com.google.gson.JsonElement element,
java.lang.String field) |
com.google.gson.JsonArray |
getAsArray(com.google.gson.JsonElement element) |
boolean |
getAsBoolean(com.google.gson.JsonElement element,
java.lang.String field) |
com.google.gson.JsonObject |
getAsObject(com.google.gson.JsonElement element) |
retrofit2.Converter.Factory |
getConverterFactory() |
com.google.gson.JsonElement |
getField(com.google.gson.JsonElement element,
java.lang.String field) |
java.util.Iterator<java.util.Map.Entry<java.lang.String,com.google.gson.JsonElement>> |
getObjectIterator(com.google.gson.JsonElement element) |
java.util.Iterator<java.util.Map.Entry<java.lang.String,com.google.gson.JsonElement>> |
getObjectIterator(com.google.gson.JsonElement element,
java.lang.String field) |
com.google.gson.Gson |
getObjectMapper() |
boolean |
hasField(com.google.gson.JsonElement element,
java.lang.String field) |
boolean |
isJsonObject(com.google.gson.JsonElement element) |
void |
putOnObject(com.google.gson.JsonObject element,
java.lang.String key,
com.google.gson.JsonElement value) |
java.lang.String |
toJson(java.lang.Object input) |
public boolean hasField(com.google.gson.JsonElement element,
java.lang.String field)
public com.google.gson.JsonElement getField(com.google.gson.JsonElement element,
java.lang.String field)
public java.util.Iterator<com.google.gson.JsonElement> getArrayIterator(com.google.gson.JsonElement element)
public java.util.Iterator<com.google.gson.JsonElement> getArrayIterator(com.google.gson.JsonElement element,
java.lang.String field)
public java.util.Iterator<java.util.Map.Entry<java.lang.String,com.google.gson.JsonElement>> getObjectIterator(com.google.gson.JsonElement element)
public java.util.Iterator<java.util.Map.Entry<java.lang.String,com.google.gson.JsonElement>> getObjectIterator(com.google.gson.JsonElement element,
java.lang.String field)
public java.lang.String elementToString(com.google.gson.JsonElement element)
public java.lang.String elementToString(com.google.gson.JsonElement element,
java.lang.String field)
public int elementToInt(com.google.gson.JsonElement element,
java.lang.String field)
public boolean isJsonObject(com.google.gson.JsonElement element)
public com.google.gson.JsonObject getAsObject(com.google.gson.JsonElement element)
public boolean getAsBoolean(com.google.gson.JsonElement element,
java.lang.String field)
public void putOnObject(com.google.gson.JsonObject element,
java.lang.String key,
com.google.gson.JsonElement value)
public com.google.gson.JsonElement getArrayElement(com.google.gson.JsonElement element,
int index)
public java.lang.Long elementToLong(com.google.gson.JsonElement element)
public java.lang.Long elementToLong(com.google.gson.JsonElement element,
java.lang.String field)
public com.google.gson.JsonArray getAsArray(com.google.gson.JsonElement element)
public <T> T fromJson(java.lang.String input,
java.lang.Class<T> clazz)
throws PubNubException
PubNubExceptionpublic <T> T convertValue(com.google.gson.JsonElement input,
java.lang.Class clazz)
public java.lang.String toJson(java.lang.Object input)
throws PubNubException
PubNubException@Generated(value="lombok") public com.google.gson.Gson getObjectMapper()
@Generated(value="lombok") public retrofit2.Converter.Factory getConverterFactory()