Class EnumTypeAnnotationTypeAdapter


  • public final class EnumTypeAnnotationTypeAdapter
    extends com.google.gson.TypeAdapter<EnumAnnotation>
    TypeAdapter implementation to be able to serialize EnumAnnotation instances. This TypeAnnotation requires a special TypeAdapter due that Enum can be of an generic type.

    To not loose the Type information, this TypeAdapter serializes the generic type of the Enum to be able to create the same instance at deserialization time.

    Since:
    1.0