Class EnumMapSerializer

  • All Implemented Interfaces:
    ResolvableSerializer, SchemaAware

    public class EnumMapSerializer
    extends ContainerSerializerBase<java.util.EnumMap<? extends java.lang.Enum<?>,​?>>
    implements ResolvableSerializer
    Specialized serializer for EnumMaps. Somewhat tricky to implement because actual Enum value type may not be available; and if not, it can only be gotten from actual instance.
    • Field Detail

      • _staticTyping

        protected final boolean _staticTyping
      • _keyEnums

        protected final EnumValues _keyEnums
        If we know enumeration used as key, this will contain value set to use for serialization
      • _valueType

        protected final JavaType _valueType
      • _property

        protected final BeanProperty _property
        Property being serialized with this instance
        Since:
        1.7
      • _valueSerializer

        protected JsonSerializer<java.lang.Object> _valueSerializer
        Value serializer to use, if it can be statically determined
        Since:
        1.5
      • _valueTypeSerializer

        protected final TypeSerializer _valueTypeSerializer
        Type serializer used for values, if any.