Class NullsAsEmptyProvider
java.lang.Object
com.fasterxml.jackson.databind.deser.impl.NullsAsEmptyProvider
- All Implemented Interfaces:
NullValueProvider,Serializable
Simple
NullValueProvider that will return "empty value"
specified by JsonDeserializer provider is constructed with.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccessor that may be used to determine if and when provider must be called to access null replacement value.Method called to possibly convert incoming `null` token (read via underlying streaming input source) into other value of type accessor supports.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.fasterxml.jackson.databind.deser.NullValueProvider
getAbsentValue
-
Constructor Details
-
NullsAsEmptyProvider
-
-
Method Details
-
getNullAccessPattern
Description copied from interface:NullValueProviderAccessor that may be used to determine if and when provider must be called to access null replacement value.- Specified by:
getNullAccessPatternin interfaceNullValueProvider
-
getNullValue
Description copied from interface:NullValueProviderMethod 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
NullValueProvider.getNullAccessPattern()returns `ALWAYS_NULL` or `CONSTANT`, this method WILL NOT use provided `ctxt` and it may thus be passed as `null`.- Specified by:
getNullValuein interfaceNullValueProvider- Throws:
JsonMappingException
-