Methods
Modifier and Type |
Method and Description |
static EnumResolver |
constructFor(Class<Enum<?>> enumCls,
AnnotationIntrospector ai)
Factory method for constructing resolver that maps from Enum.name() into
Enum value
|
CompactStringObjectMap |
constructLookup() |
static EnumResolver |
constructUnsafe(Class<?> rawEnumCls,
AnnotationIntrospector ai)
This method is needed because of the dynamic nature of constructing Enum
resolvers.
|
static EnumResolver |
constructUnsafeUsingMethod(Class<?> rawEnumCls,
Method accessor)
|
static EnumResolver |
constructUnsafeUsingMethod(Class<?> rawEnumCls,
Method accessor,
AnnotationIntrospector ai)
Method used when actual String serialization is indicated using @JsonValue
on a method.
|
static EnumResolver |
constructUnsafeUsingToString(Class<?> rawEnumCls)
|
static EnumResolver |
constructUnsafeUsingToString(Class<?> rawEnumCls,
AnnotationIntrospector ai)
|
static EnumResolver |
constructUsingMethod(Class<Enum<?>> enumCls,
Method accessor)
|
static EnumResolver |
constructUsingMethod(Class<Enum<?>> enumCls,
Method accessor,
AnnotationIntrospector ai) |
static EnumResolver |
constructUsingToString(Class<Enum<?>> enumCls)
|
static EnumResolver |
constructUsingToString(Class<Enum<?>> enumCls,
AnnotationIntrospector ai)
Factory method for constructing resolver that maps from Enum.toString() into
Enum value
|
Enum<?> |
findEnum(String key) |
Enum<?> |
getDefaultValue() |
Enum<?> |
getEnum(int index) |
Class<Enum<?>> |
getEnumClass() |
Collection<String> |
getEnumIds() |
List<Enum<?>> |
getEnums() |
Enum<?>[] |
getRawEnums() |
int |
lastValidIndex() |