Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.deser.impl

public Class NullsAsEmptyProvider

extends Object
implements NullValueProvider, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, com.fasterxml.jackson.databind.deser.NullValueProvider
Imports
com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.deser.NullValueProvider, com.fasterxml.jackson.databind.util.AccessPattern

Simple NullValueProvider that will return "empty value" specified by JsonDeserializer provider is constructed with.

Field Summary

Modifier and TypeField and Description
protected final JsonDeserializer<?>
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AccessPattern
getNullAccessPattern()

Implements com.fasterxml.jackson.databind.deser.NullValueProvider.getNullAccessPattern.

Accessor that may be used to determine if and when provider must be called to access null replacement value.

public Object
getNullValue(DeserializationContext ctxt)

Implements com.fasterxml.jackson.databind.deser.NullValueProvider.getNullValue.

Method called to possibly convert incoming `null` token (read via underlying streaming input source) into other value of type accessor supports.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_deserializerback to summary
protected final JsonDeserializer<?> _deserializer
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

NullsAsEmptyProviderback to summary
public NullsAsEmptyProvider(JsonDeserializer<?> deser)

Method Detail

getNullAccessPatternback to summary
public AccessPattern getNullAccessPattern()

Implements com.fasterxml.jackson.databind.deser.NullValueProvider.getNullAccessPattern.

Doc from com.fasterxml.jackson.databind.deser.NullValueProvider.getNullAccessPattern.

Accessor that may be used to determine if and when provider must be called to access null replacement value.

Annotations
@Override
getNullValueback to summary
public Object getNullValue(DeserializationContext ctxt) throws JsonMappingException

Implements com.fasterxml.jackson.databind.deser.NullValueProvider.getNullValue.

Doc from com.fasterxml.jackson.databind.deser.NullValueProvider.getNullValue.

Method called to possibly convert incoming `null` token (read via underlying streaming input source) into other value of type accessor supports. May return `null`, or value compatible with type binding.

Note

if getNullAccessPattern() returns `ALWAYS_NULL` or `CONSTANT`, this method WILL NOT use provided `ctxt` and it may thus be passed as `null`.

Annotations
@Override