java.util.Map
for efficient conversion from id (gotten with java.lang.Enum#toString()
to value.
In future we could consider alternatively allowing use of
java. for id.
| Modifier and Type | Field and Description |
|---|---|
| protected final Object[] | |
| protected final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Object | |
| private String | |
| public Object | |
| public Object | readNext(JSONReader reader, JsonParser p)
Overrides tools. Method called to deserialize value of type supported by this reader, using given parser. |
| _byIndex | back to summary |
|---|---|
| protected final Object[] _byIndex | |
| _byName | back to summary |
|---|---|
| protected final Map<String, Object> _byName | |
| EnumReader | back to summary |
|---|---|
| public EnumReader(Class<?> enumType, Object[] byIndex, Map<String, Object> byName) | |
| _enum | back to summary |
|---|---|
| private Object _enum(String id) throws JacksonException | |
| desc | back to summary |
|---|---|
| private String desc() | |
| read | back to summary |
|---|---|
| public Object read(JSONReader reader, JsonParser p) throws JacksonException Implements abstract tools.
| |
| readNext | back to summary |
|---|---|
| public Object readNext(JSONReader reader, JsonParser p) throws JacksonException Overrides tools. Doc from tools. Method called to deserialize value of type supported by this reader, using given parser. Parser is not yet positioned to the (first) token of the value to read and needs to be advanced.
Default implementation simply calls `p.nextToken()` first, then calls
{#link
| |