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_EMPTYFields inherited from class tools.jackson.databind.ser.std.StdDynamicSerializer
_dynamicValueSerializers, _property, _valueSerializer, _valueTypeSerializerFields inherited from class tools.jackson.databind.ser.std.StdSerializer
_handledType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAtomicReferenceSerializer(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, unwrappingSerializerMethods inherited from class tools.jackson.databind.ser.std.StdDynamicSerializer
_findAndAddDynamic, _findAndAddDynamic, _findAndAddDynamic, _findAndAddDynamicMethods 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, wrapAndThrowMethods 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:ReferenceTypeSerializerMutant 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:
withResolvedin classReferenceTypeSerializer<AtomicReference<?>>
-
withContentInclusion
public ReferenceTypeSerializer<AtomicReference<?>> withContentInclusion(Object suppressableValue, boolean suppressNulls) Description copied from class:ReferenceTypeSerializerMutant 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:
withContentInclusionin classReferenceTypeSerializer<AtomicReference<?>>
-
_isValuePresent
Description copied from class:ReferenceTypeSerializerMethod 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:
_isValuePresentin classReferenceTypeSerializer<AtomicReference<?>>
-
_getReferenced
- Specified by:
_getReferencedin classReferenceTypeSerializer<AtomicReference<?>>
-
_getReferencedIfPresent
- Specified by:
_getReferencedIfPresentin classReferenceTypeSerializer<AtomicReference<?>>
-