E - the enumeration type the serializer should work withpublic class EnumSerializer<E> extends Object implements com.google.gson.JsonSerializer<E>, com.google.gson.JsonDeserializer<E>
| Constructor and Description |
|---|
EnumSerializer() |
| Modifier and Type | Method and Description |
|---|---|
E |
deserialize(com.google.gson.JsonElement json,
Type typeOfEnum,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(E enumValue,
Type typeOfEnum,
com.google.gson.JsonSerializationContext context) |
Copyright ? 2021. All rights reserved.