Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.module

public Class SimpleKeyDeserializers

extends Object
implements KeyDeserializers, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, com.fasterxml.jackson.databind.deser.KeyDeserializers
Imports
java.util.Collection, .HashMap, .Map, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.deser.KeyDeserializers, com.fasterxml.jackson.databind.type.ClassKey

Simple implementation KeyDeserializers which allows registration of deserializers based on raw (type erased class). It can work well for basic bean and scalar type deserializers, but is not a good fit for handling generic types (like Maps and Collections or array types).

Unlike SimpleSerializers, this class does not currently support generic mappings; all mappings must be to exact declared deserialization type.

Field Summary

Modifier and TypeField and Description
protected HashMap<ClassKey, KeyDeserializer>
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public SimpleKeyDeserializers
public KeyDeserializer
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_classMappingsback to summary
protected HashMap<ClassKey, KeyDeserializer> _classMappings
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

SimpleKeyDeserializersback to summary
public SimpleKeyDeserializers()

Method Detail

addDeserializerback to summary
public SimpleKeyDeserializers addDeserializer(Class<?> forClass, KeyDeserializer deser)
findKeyDeserializerback to summary
public KeyDeserializer findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)

Implements com.fasterxml.jackson.databind.deser.KeyDeserializers.findKeyDeserializer.

Annotations
@Override