public class StdKeySerializers extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StdKeySerializers.CalendarKeySerializer |
static class |
StdKeySerializers.ClassKeySerializer |
static class |
StdKeySerializers.DateKeySerializer |
static class |
StdKeySerializers.StringKeySerializer |
Modifier and Type | Field and Description |
---|---|
protected static JsonSerializer<Object> |
DEFAULT_KEY_SERIALIZER |
protected static JsonSerializer<Object> |
DEFAULT_STRING_SERIALIZER |
Modifier and Type | Method and Description |
---|---|
static JsonSerializer<Object> |
getDefault() |
static JsonSerializer<Object> |
getStdKeySerializer(JavaType keyType)
Deprecated.
Since 2.5
|
static JsonSerializer<Object> |
getStdKeySerializer(SerializationConfig config,
Class<?> rawKeyType,
boolean useDefault) |
protected static final JsonSerializer<Object> DEFAULT_KEY_SERIALIZER
protected static final JsonSerializer<Object> DEFAULT_STRING_SERIALIZER
public static JsonSerializer<Object> getStdKeySerializer(SerializationConfig config, Class<?> rawKeyType, boolean useDefault)
config
- Serialization configuration in use, may be needed in choosing
serializer to userawKeyType
- Type of key values to serializeuseDefault
- If no match is found, should we return fallback deserializer
(true), or null (false)?@Deprecated public static JsonSerializer<Object> getStdKeySerializer(JavaType keyType)
public static JsonSerializer<Object> getDefault()
Copyright © 2014-2015 FasterXML. All Rights Reserved.