public abstract class GuavaMultimapDeserializer<T extends com.google.common.collect.Multimap<Object,Object>>
extends com.fasterxml.jackson.databind.JsonDeserializer<T>
implements com.fasterxml.jackson.databind.deser.ContextualDeserializer
Constructor and Description |
---|
GuavaMultimapDeserializer(com.fasterxml.jackson.databind.type.MapLikeType type,
com.fasterxml.jackson.databind.KeyDeserializer keyDeserializer,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer elementTypeDeserializer,
com.fasterxml.jackson.databind.JsonDeserializer<?> elementDeserializer) |
GuavaMultimapDeserializer(com.fasterxml.jackson.databind.type.MapLikeType type,
com.fasterxml.jackson.databind.KeyDeserializer keyDeserializer,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer elementTypeDeserializer,
com.fasterxml.jackson.databind.JsonDeserializer<?> elementDeserializer,
Method creatorMethod) |
Modifier and Type | Method and Description |
---|---|
protected abstract com.fasterxml.jackson.databind.JsonDeserializer<?> |
_createContextual(com.fasterxml.jackson.databind.type.MapLikeType t,
com.fasterxml.jackson.databind.KeyDeserializer kd,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer,
com.fasterxml.jackson.databind.JsonDeserializer<?> ed,
Method method) |
com.fasterxml.jackson.databind.JsonDeserializer<?> |
createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt,
com.fasterxml.jackson.databind.BeanProperty property)
We need to use this method to properly handle possible contextual variants of key and value
deserializers, as well as type deserializers.
|
protected abstract T |
createMultimap() |
T |
deserialize(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
deserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializer
public GuavaMultimapDeserializer(com.fasterxml.jackson.databind.type.MapLikeType type, com.fasterxml.jackson.databind.KeyDeserializer keyDeserializer, com.fasterxml.jackson.databind.jsontype.TypeDeserializer elementTypeDeserializer, com.fasterxml.jackson.databind.JsonDeserializer<?> elementDeserializer)
public GuavaMultimapDeserializer(com.fasterxml.jackson.databind.type.MapLikeType type, com.fasterxml.jackson.databind.KeyDeserializer keyDeserializer, com.fasterxml.jackson.databind.jsontype.TypeDeserializer elementTypeDeserializer, com.fasterxml.jackson.databind.JsonDeserializer<?> elementDeserializer, Method creatorMethod)
protected abstract T createMultimap()
public com.fasterxml.jackson.databind.JsonDeserializer<?> createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.BeanProperty property) throws com.fasterxml.jackson.databind.JsonMappingException
createContextual
in interface com.fasterxml.jackson.databind.deser.ContextualDeserializer
com.fasterxml.jackson.databind.JsonMappingException
protected abstract com.fasterxml.jackson.databind.JsonDeserializer<?> _createContextual(com.fasterxml.jackson.databind.type.MapLikeType t, com.fasterxml.jackson.databind.KeyDeserializer kd, com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer, com.fasterxml.jackson.databind.JsonDeserializer<?> ed, Method method)
public T deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
deserialize
in class com.fasterxml.jackson.databind.JsonDeserializer<T extends com.google.common.collect.Multimap<Object,Object>>
IOException
com.fasterxml.jackson.core.JsonProcessingException
Copyright © 2017 FasterXML. All rights reserved.