Class EnumSerializer

java.lang.Object
org.spincast.plugins.gson.serializers.EnumSerializer
All Implemented Interfaces:
com.google.gson.JsonSerializer<Enum<?>>

public class EnumSerializer extends Object implements com.google.gson.JsonSerializer<Enum<?>>
  • Field Details

  • Constructor Details

  • Method Details

    • getJsonObjectFactory

      protected JsonObjectFactory getJsonObjectFactory()
    • getJsonObjectSerializer

      protected JsonObjectSerializer getJsonObjectSerializer()
    • serialize

      public com.google.gson.JsonElement serialize(Enum<?> enumValue, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<Enum<?>>