public abstract class JsonElementType<T> extends Object
Modifier and Type | Field and Description |
---|---|
static JsonElementType<com.google.gson.JsonArray> |
ARRAY |
static JsonElementType<Boolean> |
BOOLEAN |
static JsonElementType<Double> |
DOUBLE |
static JsonElementType<Float> |
FLOAT |
static JsonElementType<Integer> |
INTEGER |
static JsonElementType<Long> |
LONG |
static JsonElementType<com.google.gson.JsonNull> |
NULL |
static JsonElementType<com.google.gson.JsonObject> |
OBJECT |
static JsonElementType<com.google.gson.JsonPrimitive> |
PRIMITIVE |
static JsonElementType<String> |
STRING |
Modifier and Type | Method and Description |
---|---|
T |
fromElement(com.google.gson.JsonElement element) |
boolean |
isInstance(com.google.gson.JsonElement element) |
protected abstract T |
nullUnsafeFromElement(com.google.gson.JsonElement element) |
protected abstract boolean |
nullUnsafeIsInstance(com.google.gson.JsonElement element) |
protected abstract com.google.gson.JsonElement |
nullUnsafeToElement(T element) |
com.google.gson.JsonElement |
toElement(T value) |
public static final JsonElementType<com.google.gson.JsonObject> OBJECT
public static final JsonElementType<com.google.gson.JsonArray> ARRAY
public static final JsonElementType<com.google.gson.JsonPrimitive> PRIMITIVE
public static final JsonElementType<String> STRING
public static final JsonElementType<Boolean> BOOLEAN
public static final JsonElementType<Integer> INTEGER
public static final JsonElementType<Long> LONG
public static final JsonElementType<Float> FLOAT
public static final JsonElementType<Double> DOUBLE
public static final JsonElementType<com.google.gson.JsonNull> NULL
public final T fromElement(com.google.gson.JsonElement element)
protected abstract T nullUnsafeFromElement(com.google.gson.JsonElement element)
public final com.google.gson.JsonElement toElement(T value)
protected abstract com.google.gson.JsonElement nullUnsafeToElement(T element)
public final boolean isInstance(com.google.gson.JsonElement element)
protected abstract boolean nullUnsafeIsInstance(com.google.gson.JsonElement element)
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved