Package com.jtelegram.api.util
Class LowercaseEnumAdapter<T extends java.lang.Enum<T>>
- java.lang.Object
-
- com.google.gson.TypeAdapter<T>
-
- com.jtelegram.api.util.LowercaseEnumAdapter<T>
-
public class LowercaseEnumAdapter<T extends java.lang.Enum<T>> extends com.google.gson.TypeAdapter<T>
Merely just lower case the enum's value
-
-
Constructor Summary
Constructors Constructor Description LowercaseEnumAdapter(java.lang.Class<T> enumClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
read(com.google.gson.stream.JsonReader jsonReader)
void
write(com.google.gson.stream.JsonWriter jsonWriter, T anEnum)
-