public class StdKeyDeserializer extends KeyDeserializer implements java.io.Serializable
KeyDeserializer
implementation used for most Map
types Jackson supports.
Implemented as "chameleon" (or swiss pocket knife) class; not particularly elegant,
but helps reduce number of classes and jar size (class metadata adds significant
per-class overhead; much more than bytecode).KeyDeserializer.None
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BOOLEAN |
static int |
TYPE_BYTE |
static int |
TYPE_BYTE_ARRAY |
static int |
TYPE_CALENDAR |
static int |
TYPE_CHAR |
static int |
TYPE_CLASS |
static int |
TYPE_CURRENCY |
static int |
TYPE_DATE |
static int |
TYPE_DOUBLE |
static int |
TYPE_FLOAT |
static int |
TYPE_INT |
static int |
TYPE_LOCALE |
static int |
TYPE_LONG |
static int |
TYPE_SHORT |
static int |
TYPE_URI |
static int |
TYPE_URL |
static int |
TYPE_UUID |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deserializeKey(java.lang.String key,
DeserializationContext ctxt)
Method called to deserialize a
Map key from JSON property name. |
static StdKeyDeserializer |
forType(java.lang.Class<?> raw) |
java.lang.Class<?> |
getKeyClass() |
public static final int TYPE_BOOLEAN
public static final int TYPE_BYTE
public static final int TYPE_SHORT
public static final int TYPE_CHAR
public static final int TYPE_INT
public static final int TYPE_LONG
public static final int TYPE_FLOAT
public static final int TYPE_DOUBLE
public static final int TYPE_LOCALE
public static final int TYPE_DATE
public static final int TYPE_CALENDAR
public static final int TYPE_UUID
public static final int TYPE_URI
public static final int TYPE_URL
public static final int TYPE_CLASS
public static final int TYPE_CURRENCY
public static final int TYPE_BYTE_ARRAY
public static StdKeyDeserializer forType(java.lang.Class<?> raw)
public java.lang.Object deserializeKey(java.lang.String key, DeserializationContext ctxt) throws java.io.IOException
KeyDeserializer
Map
key from JSON property name.deserializeKey
in class KeyDeserializer
java.io.IOException
public java.lang.Class<?> getKeyClass()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"