java.lang.Object
tools.jackson.databind.deser.impl.NullsConstantProvider
- All Implemented Interfaces:
Serializable,NullValueProvider
Simple
NullValueProvider that will simply return given
constant value when a null is encountered; or, with a specially
constructed instance (see skipper(), indicate the need
for special behavior of skipping property altogether (not setting
as anything OR throwing exception).- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NullsConstantProviderAccessor 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.static booleanUtility method that can be used to check if given null value provider is "nuller", no-operation provider that will always simply return Java `null` for any and all input `null`s.static booleanUtility method that can be used to check if given null value provider is "skipper", marker provider that means that all input `null`s should be skipped (ignored), instead of convertedstatic NullsConstantProvidernuller()static NullsConstantProviderskipper()Static accessor for a stateless instance used as marker, to indicate that all input `null` values should be skipped (ignored), so that no corresponding property value is set (with POJOs), and no content values (array/Collection elements, Map entries) are added.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tools.jackson.databind.deser.NullValueProvider
getAbsentValue
-
Field Details
-
_nullValue
-
_access
-
-
Constructor Details
-
NullsConstantProvider
-
-
Method Details
-
skipper
Static accessor for a stateless instance used as marker, to indicate that all input `null` values should be skipped (ignored), so that no corresponding property value is set (with POJOs), and no content values (array/Collection elements, Map entries) are added. -
nuller
-
forValue
-
isSkipper
Utility method that can be used to check if given null value provider is "skipper", marker provider that means that all input `null`s should be skipped (ignored), instead of converted -
isNuller
Utility method that can be used to check if given null value provider is "nuller", no-operation provider that will always simply return Java `null` for any and all input `null`s. -
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
-