Package net.bramp.ffmpeg.gson
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 Summary
-
Method Summary
Modifier and TypeMethodDescription<T> com.google.gson.TypeAdapter
<T> create
(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> type)
-
Constructor Details
-
LowercaseEnumTypeAdapterFactory
public LowercaseEnumTypeAdapterFactory()
-
-
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 interfacecom.google.gson.TypeAdapterFactory
-