Uses of Class
io.datarouter.gson.typeadapter.StringMappedEnumTypeAdapter
Packages that use StringMappedEnumTypeAdapter
-
Uses of StringMappedEnumTypeAdapter in io.datarouter.gson.typeadapter
Methods in io.datarouter.gson.typeadapter that return StringMappedEnumTypeAdapterModifier and TypeMethodDescriptionstatic final <T extends Enum<T>>
StringMappedEnumTypeAdapter<T>StringMappedEnumTypeAdapter.optional(io.datarouter.enums.MappedEnum<T, String> mappedEnum, T replacement) When deserializing, return the replacement if the value is not found.static final <T extends Enum<T>>
StringMappedEnumTypeAdapter<T>StringMappedEnumTypeAdapter.optionalWithLogging(io.datarouter.enums.MappedEnum<T, String> mappedEnum, T replacement) When deserializing, return the replacement if the value is not found.static final <T extends Enum<T>>
StringMappedEnumTypeAdapter<T>When deserializing, throw an exception if the value is not found.