Package discord4j.discordjson.possible
Class PossibleSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<Possible<?>>
-
- discord4j.discordjson.possible.PossibleSerializer
-
- All Implemented Interfaces:
JsonFormatVisitable
,SchemaAware
,ContextualSerializer
,Serializable
public class PossibleSerializer extends ReferenceTypeSerializer<Possible<?>>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None
-
-
Field Summary
-
Fields inherited from class com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer
_dynamicSerializers, _property, _referredType, _suppressableValue, _suppressNulls, _unwrapper, _valueSerializer, _valueTypeSerializer, MARKER_FOR_EMPTY
-
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
-
-
Constructor Summary
Constructors Constructor Description PossibleSerializer(ReferenceTypeSerializer<?> base, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls)
PossibleSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> ser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
_getReferenced(Possible<?> value)
protected Object
_getReferencedIfPresent(Possible<?> value)
protected boolean
_isValuePresent(Possible<?> value)
PossibleSerializer
withContentInclusion(Object suppressableValue, boolean suppressNulls)
protected PossibleSerializer
withResolved(BeanProperty prop, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper)
-
Methods inherited from class com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer
_useStatic, acceptJsonFormatVisitor, createContextual, getReferredType, isEmpty, isUnwrappingSerializer, serialize, serializeWithType, unwrappingSerializer
-
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
-
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, properties, replaceDelegatee, usesObjectId, withFilterId
-
-
-
-
Constructor Detail
-
PossibleSerializer
public PossibleSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> ser)
-
PossibleSerializer
public PossibleSerializer(ReferenceTypeSerializer<?> base, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls)
-
-
Method Detail
-
withResolved
protected PossibleSerializer withResolved(BeanProperty prop, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper)
- Specified by:
withResolved
in classReferenceTypeSerializer<Possible<?>>
-
withContentInclusion
public PossibleSerializer withContentInclusion(Object suppressableValue, boolean suppressNulls)
- Specified by:
withContentInclusion
in classReferenceTypeSerializer<Possible<?>>
-
_isValuePresent
protected boolean _isValuePresent(Possible<?> value)
- Specified by:
_isValuePresent
in classReferenceTypeSerializer<Possible<?>>
-
_getReferenced
protected Object _getReferenced(Possible<?> value)
- Specified by:
_getReferenced
in classReferenceTypeSerializer<Possible<?>>
-
_getReferencedIfPresent
@Nullable protected Object _getReferencedIfPresent(Possible<?> value)
- Specified by:
_getReferencedIfPresent
in classReferenceTypeSerializer<Possible<?>>
-
-