Class AdapterLowercaseEnum<T extends Enum<T>>
java.lang.Object
com.kamikazejam.kamicommon.util.adapter.AdapterLowercaseEnum<T>
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<T>,com.google.gson.JsonSerializer<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) static <T extends Enum<T>>
@NotNull AdapterLowercaseEnum<T> getComparable(com.google.gson.JsonElement json) getComparable(Enum<?> value) getComparable(String string) getEnumValueFrom(com.google.gson.JsonElement json) getEnumValueFrom(String string) T[]com.google.gson.JsonElement
-
Constructor Details
-
AdapterLowercaseEnum
-
-
Method Details
-
get
@Contract("_ -> new") @NotNull public static <T extends Enum<T>> @NotNull AdapterLowercaseEnum<T> get(@NotNull @NotNull Class<T> clazz) -
serialize
-
deserialize
-
getEnumValueFrom
-
getEnumValueFrom
-
getEnumValues
-
getComparable
-
getComparable
-
getComparable
-