public abstract class StdKeySerializers
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StdKeySerializers.Default
This is a "chameleon" style multi-type key serializer for simple
standard JDK types.
|
static class |
StdKeySerializers.Dynamic
Key serializer used when key type is not known statically, and actual key
serializer needs to be dynamically located.
|
static class |
StdKeySerializers.EnumKeySerializer
Specialized instance to use for Enum keys, as per [databind#1322]
|
static class |
StdKeySerializers.StringKeySerializer
Simple and fast key serializer when keys are Strings.
|
Constructor and Description |
---|
StdKeySerializers() |
Modifier and Type | Method and Description |
---|---|
static JsonSerializer<java.lang.Object> |
getDefault()
Deprecated.
since 2.7
|
static JsonSerializer<java.lang.Object> |
getFallbackKeySerializer(SerializationConfig config,
java.lang.Class<?> rawKeyType)
Method called if no specified key serializer was located; will return a
"default" key serializer.
|
static JsonSerializer<java.lang.Object> |
getStdKeySerializer(SerializationConfig config,
java.lang.Class<?> rawKeyType,
boolean useDefault) |
public static JsonSerializer<java.lang.Object> getStdKeySerializer(SerializationConfig config, java.lang.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)?public static JsonSerializer<java.lang.Object> getFallbackKeySerializer(SerializationConfig config, java.lang.Class<?> rawKeyType)
@Deprecated public static JsonSerializer<java.lang.Object> getDefault()
Copyright © 2010 - 2020 Adobe. All Rights Reserved