public abstract class DropElementSerializer<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static DropElementSerializer<Boolean> |
BOOLEAN |
protected static DropElementSerializer<Collection<Object>> |
COLLECTION |
protected static DropElementSerializer<Date> |
DATE |
protected static DropElementSerializer<Double> |
DOUBLE |
protected static DropElementSerializer<Integer> |
INTEGER |
protected static DropElementSerializer<Location> |
LOCATION |
protected static DropElementSerializer<Long> |
LONG |
protected static DropElementSerializer<Map<String,Object>> |
MAP |
protected static DropElementSerializer<String> |
STRING |
protected String[] |
typeKeys |
| Constructor and Description |
|---|
DropElementSerializer(String... typeKeys) |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
extractIntMember(com.google.gson.JsonObject o,
String key) |
abstract T |
from(String type,
com.google.gson.JsonElement e) |
static Object |
fromJsonElement(com.google.gson.JsonElement e) |
protected String |
getTypeKey(T o) |
com.google.gson.JsonElement |
to(T o) |
static com.google.gson.JsonElement |
toJsonElement(Object o) |
abstract com.google.gson.JsonElement |
toPrimitive(T o) |
protected String[] typeKeys
protected static DropElementSerializer<Map<String,Object>> MAP
protected static DropElementSerializer<Collection<Object>> COLLECTION
protected static DropElementSerializer<String> STRING
protected static DropElementSerializer<Boolean> BOOLEAN
protected static DropElementSerializer<Double> DOUBLE
protected static DropElementSerializer<Integer> INTEGER
protected static DropElementSerializer<Long> LONG
protected static DropElementSerializer<Date> DATE
protected static DropElementSerializer<Location> LOCATION
public DropElementSerializer(String... typeKeys)
public com.google.gson.JsonElement to(T o)
public abstract com.google.gson.JsonElement toPrimitive(T o)
public static Object fromJsonElement(com.google.gson.JsonElement e)
public static com.google.gson.JsonElement toJsonElement(Object o)
protected static int extractIntMember(com.google.gson.JsonObject o,
String key)
Copyright © 2017. All rights reserved.