public static enum JsonUtils.ImmutableListTypeAdapter extends java.lang.Enum<JsonUtils.ImmutableListTypeAdapter> implements com.google.gson.JsonDeserializer<com.google.common.collect.ImmutableList<?>>, com.google.gson.JsonSerializer<com.google.common.collect.ImmutableList<?>>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<?> |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type type,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(com.google.common.collect.ImmutableList<?> src,
java.lang.reflect.Type type,
com.google.gson.JsonSerializationContext context) |
static JsonUtils.ImmutableListTypeAdapter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsonUtils.ImmutableListTypeAdapter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonUtils.ImmutableListTypeAdapter INSTANCE
public static JsonUtils.ImmutableListTypeAdapter[] values()
for (JsonUtils.ImmutableListTypeAdapter c : JsonUtils.ImmutableListTypeAdapter.values()) System.out.println(c);
public static JsonUtils.ImmutableListTypeAdapter valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic com.google.common.collect.ImmutableList<?> deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<com.google.common.collect.ImmutableList<?>>
com.google.gson.JsonParseException
public com.google.gson.JsonElement serialize(com.google.common.collect.ImmutableList<?> src, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<com.google.common.collect.ImmutableList<?>>