com.fasterxml.jackson.databind.util

Class EnumValues

    • Method Detail

      • construct

        public static EnumValues construct(SerializationConfig config,
                                           Class<Enum<?>> enumClass)
        NOTE: do NOT call this if configuration may change, and choice between toString() and name() might change dynamically.
      • serializedValueFor

        public com.fasterxml.jackson.core.SerializableString serializedValueFor(Enum<?> key)
      • values

        public Collection<com.fasterxml.jackson.core.SerializableString> values()
      • enums

        public List<Enum<?>> enums()
        Convenience accessor for getting raw Enum instances.
        Since:
        2.6
      • internalMap

        public EnumMap<?,com.fasterxml.jackson.core.SerializableString> internalMap()
        Method used for serialization and introspection by core Jackson code.
      • getEnumClass

        public Class<Enum<?>> getEnumClass()
        Since:
        2.2

Copyright © 2008–2019 FasterXML. All rights reserved.