Class LowercaseEnumTypeAdapterFactory

java.lang.Object
net.bramp.ffmpeg.gson.LowercaseEnumTypeAdapterFactory
All Implemented Interfaces:
com.google.gson.TypeAdapterFactory

@Immutable public class LowercaseEnumTypeAdapterFactory extends Object implements com.google.gson.TypeAdapterFactory
Maps Enums to lowercase strings.

Adapted from: TypeAdapterFactory

  • Constructor Details

  • Method Details

    • create

      @CheckReturnValue public <T> com.google.gson.TypeAdapter<T> create(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> type)
      Specified by:
      create in interface com.google.gson.TypeAdapterFactory