public static enum JsonUtils.ImmutableMapTypeAdapter extends java.lang.Enum<JsonUtils.ImmutableMapTypeAdapter> implements com.google.gson.JsonDeserializer<com.google.common.collect.ImmutableMap<java.lang.String,?>>, com.google.gson.JsonSerializer<com.google.common.collect.ImmutableMap<java.lang.String,?>>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<java.lang.String,?> |
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.ImmutableMap<java.lang.String,?> src,
java.lang.reflect.Type type,
com.google.gson.JsonSerializationContext context) |
static JsonUtils.ImmutableMapTypeAdapter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsonUtils.ImmutableMapTypeAdapter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonUtils.ImmutableMapTypeAdapter INSTANCE
public static JsonUtils.ImmutableMapTypeAdapter[] values()
for (JsonUtils.ImmutableMapTypeAdapter c : JsonUtils.ImmutableMapTypeAdapter.values()) System.out.println(c);
public static JsonUtils.ImmutableMapTypeAdapter 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.ImmutableMap<java.lang.String,?> 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.ImmutableMap<java.lang.String,?>>com.google.gson.JsonParseExceptionpublic com.google.gson.JsonElement serialize(com.google.common.collect.ImmutableMap<java.lang.String,?> src,
java.lang.reflect.Type type,
com.google.gson.JsonSerializationContext context)
serialize in interface com.google.gson.JsonSerializer<com.google.common.collect.ImmutableMap<java.lang.String,?>>