Module tools.jackson.databind
Package tools.jackson.databind.ser.jdk
Class AtomicReferenceSerializer
java.lang.Object
tools.jackson.databind.ValueSerializer<T>
tools.jackson.databind.ser.std.StdSerializer<T>
tools.jackson.databind.ser.std.StdDynamicSerializer<T>
tools.jackson.databind.ser.std.ReferenceTypeSerializer<AtomicReference<?>>
tools.jackson.databind.ser.jdk.AtomicReferenceSerializer
- All Implemented Interfaces:
JsonFormatVisitable
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.ValueSerializer
ValueSerializer.None
-
Field Summary
Fields inherited from class tools.jackson.databind.ser.std.ReferenceTypeSerializer
_referredType, _suppressableValue, _suppressNulls, _unwrapper, MARKER_FOR_EMPTY
Fields inherited from class tools.jackson.databind.ser.std.StdDynamicSerializer
_dynamicValueSerializers, _property, _valueSerializer, _valueTypeSerializer
Fields inherited from class tools.jackson.databind.ser.std.StdSerializer
_handledType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AtomicReferenceSerializer
(AtomicReferenceSerializer base, BeanProperty property, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls) AtomicReferenceSerializer
(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> ser) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
_getReferenced
(AtomicReference<?> value) protected Object
_getReferencedIfPresent
(AtomicReference<?> value) protected boolean
_isValuePresent
(AtomicReference<?> value) Method called to see if there is a value present or not.withContentInclusion
(Object suppressableValue, boolean suppressNulls) Mutant factory method called to create a differently constructed instance, specifically with different exclusion rules for contained value.protected ReferenceTypeSerializer<AtomicReference<?>>
withResolved
(BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper) Mutant factory method called when changes are needed; should construct newly configured instance with new values as indicated.Methods inherited from class tools.jackson.databind.ser.std.ReferenceTypeSerializer
_useStatic, acceptJsonFormatVisitor, createContextual, getReferredType, isEmpty, isUnwrappingSerializer, serialize, serializeWithType, unwrappingSerializer
Methods inherited from class tools.jackson.databind.ser.std.StdDynamicSerializer
_findAndAddDynamic, _findAndAddDynamic, _findAndAddDynamic, _findAndAddDynamic
Methods inherited from class tools.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, _wrapIOFailure, acceptJsonFormatVisitorForBinary, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
Methods inherited from class tools.jackson.databind.ValueSerializer
getDelegatee, properties, replaceDelegatee, resolve, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties
-
Constructor Details
-
AtomicReferenceSerializer
public AtomicReferenceSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> ser) -
AtomicReferenceSerializer
protected AtomicReferenceSerializer(AtomicReferenceSerializer base, BeanProperty property, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls)
-
-
Method Details
-
withResolved
protected ReferenceTypeSerializer<AtomicReference<?>> withResolved(BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper) Description copied from class:ReferenceTypeSerializer
Mutant factory method called when changes are needed; should construct newly configured instance with new values as indicated.NOTE: caller has verified that there are changes, so implementations need NOT check if a new instance is needed.
- Specified by:
withResolved
in classReferenceTypeSerializer<AtomicReference<?>>
-
withContentInclusion
public ReferenceTypeSerializer<AtomicReference<?>> withContentInclusion(Object suppressableValue, boolean suppressNulls) Description copied from class:ReferenceTypeSerializer
Mutant factory method called to create a differently constructed instance, specifically with different exclusion rules for contained value.NOTE: caller has verified that there are changes, so implementations need NOT check if a new instance is needed.
- Specified by:
withContentInclusion
in classReferenceTypeSerializer<AtomicReference<?>>
-
_isValuePresent
Description copied from class:ReferenceTypeSerializer
Method called to see if there is a value present or not. Note that value itself may still be `null`, even if present, if referential type allows three states (absent, present-null, present-non-null); some only allow two (absent, present-non-null).- Specified by:
_isValuePresent
in classReferenceTypeSerializer<AtomicReference<?>>
-
_getReferenced
- Specified by:
_getReferenced
in classReferenceTypeSerializer<AtomicReference<?>>
-
_getReferencedIfPresent
- Specified by:
_getReferencedIfPresent
in classReferenceTypeSerializer<AtomicReference<?>>
-