Package se.l4.commons.serialization.enums
-
Interface Summary Interface Description IntegerMappedEnum Interface used to markEnums that can be mapped to and from an int, used together withIntegerMappedTranslator.ValueTranslator<Type> Translator betweenEnumand a serialized value. -
Class Summary Class Description EnumSerializer<T extends Enum<T>> Serializer forEnums.EnumSerializerResolver Resolver forenums, can handle any enum type and supports different translators between serialized and object form.IgnoreCaseNameTranslator ValueTranslatorthat uses thenameof the enum.IntegerMappedTranslator Translator for use withIntegerMappedEnum.NameTranslator ValueTranslatorthat uses thenameof the enum.OrdinalTranslator Translator that will use theEnum.ordinal()of an enum value in. -
Annotation Types Summary Annotation Type Description MapEnumVia Annotation to give the serialization library a hint on how a certain enum should be mapped.