public final class EnumValues extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
static EnumValues |
constructFromName(MapperConfig<?> config,
Class<Enum<?>> enumClass) |
static EnumValues |
constructFromToString(MapperConfig<?> config,
Class<Enum<?>> enumClass) |
List<Enum<?>> |
enums()
Convenience accessor for getting raw Enum instances.
|
Class<Enum<?>> |
getEnumClass() |
EnumMap<?,com.fasterxml.jackson.core.SerializableString> |
internalMap()
Method used for serialization and introspection by core Jackson code.
|
com.fasterxml.jackson.core.SerializableString |
serializedValueFor(Enum<?> key) |
Collection<com.fasterxml.jackson.core.SerializableString> |
values() |
public static EnumValues construct(SerializationConfig config, Class<Enum<?>> enumClass)
public static EnumValues constructFromName(MapperConfig<?> config, Class<Enum<?>> enumClass)
public static EnumValues constructFromToString(MapperConfig<?> config, Class<Enum<?>> enumClass)
public com.fasterxml.jackson.core.SerializableString serializedValueFor(Enum<?> key)
public Collection<com.fasterxml.jackson.core.SerializableString> values()
public EnumMap<?,com.fasterxml.jackson.core.SerializableString> internalMap()
Copyright © 2014–2015 FasterXML. All rights reserved.