Top Description Fields Constructors Methods
tools.jackson.datatype.guava.deser

public Class RangeKeyDeserializer

extends KeyDeserializer
implements ContextualKeyDeserializer
Class Inheritance
All Implemented Interfaces
tools.jackson.databind.deser.ContextualKeyDeserializer
Imports
com.google.common.collect.Range, .RangeMap, tools.jackson.databind.*, tools.jackson.databind.deser.ContextualKeyDeserializer, tools.jackson.databind.type.TypeFactory, tools.jackson.datatype.guava.deser.util.RangeHelper

Jackson key deserializer for a Guava Range.
Author
mcvayc
Since
2.21

Field Summary

Modifier and TypeField and Description
protected final KeyDeserializer
protected final JavaType

Constructor Summary

AccessConstructor and Description
public
protected
RangeKeyDeserializer(JavaType rangeType, KeyDeserializer rangeDeserializer)

Method Summary

Modifier and TypeMethod and Description
public KeyDeserializer
createContextual(DeserializationContext ctxt, BeanProperty property)

Implements tools.jackson.databind.deser.ContextualKeyDeserializer.createContextual.

Method called to see if a different (or differently configured) key deserializer is needed to deserialize keys of specified Map property.

public Object
deserializeKey(String rangeInterval, DeserializationContext context)

Implements abstract tools.jackson.databind.KeyDeserializer.deserializeKey.

Method called to deserialize a java.util.Map key from JSON property name.

Inherited from tools.jackson.databind.KeyDeserializer:
resolve

Field Detail

_fromStringDeserializerback to summary
protected final KeyDeserializer _fromStringDeserializer
_rangeTypeback to summary
protected final JavaType _rangeType

Constructor Detail

RangeKeyDeserializerback to summary
public RangeKeyDeserializer(JavaType type)
Since
2.21
RangeKeyDeserializerback to summary
protected RangeKeyDeserializer(JavaType rangeType, KeyDeserializer rangeDeserializer)

Method Detail

createContextualback to summary
public KeyDeserializer createContextual(DeserializationContext ctxt, BeanProperty property)

Implements tools.jackson.databind.deser.ContextualKeyDeserializer.createContextual.

Doc from tools.jackson.databind.deser.ContextualKeyDeserializer.createContextual.

Method called to see if a different (or differently configured) key deserializer is needed to deserialize keys of specified Map property. Note that instance that this method is called on is typically shared one and as a result method should NOT modify this instance but rather construct and return a new instance. This instance should only be returned as-is, in case it is already suitable for use.

Annotations
@Override
deserializeKeyback to summary
public Object deserializeKey(String rangeInterval, DeserializationContext context)

Implements abstract tools.jackson.databind.KeyDeserializer.deserializeKey.

Doc from tools.jackson.databind.KeyDeserializer.deserializeKey.

Method called to deserialize a java.util.Map key from JSON property name.

Annotations
@Override