public final class EnumValues extends Object implements Serializable
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<?,SerializableString> |
internalMap()
Method used for serialization and introspection by core Jackson code.
|
SerializableString |
serializedValueFor(Enum<?> key) |
Collection<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 SerializableString serializedValueFor(Enum<?> key)
public Collection<SerializableString> values()
public EnumMap<?,SerializableString> internalMap()
Copyright © 2018 JBoss by Red Hat. All rights reserved.