public class SimpleKeyDeserializers extends Object implements KeyDeserializers
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 Map
s and Collection
s
or array types).
Unlike SimpleSerializers
, this class does not currently support generic mappings;
all mappings must be to exact declared deserialization type.
限定符和类型 | 字段和说明 |
---|---|
protected HashMap<ClassKey,KeyDeserializer> |
_classMappings |
构造器和说明 |
---|
SimpleKeyDeserializers() |
限定符和类型 | 方法和说明 |
---|---|
SimpleKeyDeserializers |
addDeserializer(Class<?> forClass,
KeyDeserializer deser) |
KeyDeserializer |
findKeyDeserializer(JavaType type,
DeserializationConfig config,
BeanDescription beanDesc,
BeanProperty property) |
protected HashMap<ClassKey,KeyDeserializer> _classMappings
public SimpleKeyDeserializers addDeserializer(Class<?> forClass, KeyDeserializer deser)
public KeyDeserializer findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc, BeanProperty property)
findKeyDeserializer
在接口中 KeyDeserializers