Class GuavaOptionalSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<com.google.common.base.Optional<?>>
com.fasterxml.jackson.databind.ser.std.StdSerializer<com.google.common.base.Optional<?>>
com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>>
com.fasterxml.jackson.datatype.guava.ser.GuavaOptionalSerializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware, com.fasterxml.jackson.databind.ser.ContextualSerializer, Serializable
public class GuavaOptionalSerializer
extends com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None -
Field Summary
FieldsFields inherited from class com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer
_dynamicSerializers, _property, _referredType, _suppressableValue, _suppressNulls, _unwrapper, _valueSerializer, _valueTypeSerializer, MARKER_FOR_EMPTYFields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType -
Constructor Summary
ConstructorsConstructorDescriptionGuavaOptionalSerializer(com.fasterxml.jackson.databind.type.ReferenceType fullType, boolean staticTyping, com.fasterxml.jackson.databind.jsontype.TypeSerializer vts, com.fasterxml.jackson.databind.JsonSerializer<Object> ser) GuavaOptionalSerializer(GuavaOptionalSerializer base, com.fasterxml.jackson.databind.BeanProperty property, com.fasterxml.jackson.databind.jsontype.TypeSerializer vts, com.fasterxml.jackson.databind.JsonSerializer<?> valueSer, com.fasterxml.jackson.databind.util.NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object_getReferenced(com.google.common.base.Optional<?> value) protected Object_getReferencedIfPresent(com.google.common.base.Optional<?> value) protected boolean_isValuePresent(com.google.common.base.Optional<?> value) com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>> withContentInclusion(Object suppressableValue, boolean suppressNulls) protected com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>> withResolved(com.fasterxml.jackson.databind.BeanProperty prop, com.fasterxml.jackson.databind.jsontype.TypeSerializer vts, com.fasterxml.jackson.databind.JsonSerializer<?> valueSer, com.fasterxml.jackson.databind.util.NameTransformer unwrapper) Methods inherited from class com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer
_useStatic, acceptJsonFormatVisitor, createContextual, getReferredType, isEmpty, isUnwrappingSerializer, serialize, serializeWithType, unwrappingSerializerMethods 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, wrapAndThrowMethods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, properties, replaceDelegatee, usesObjectId, withFilterId, withIgnoredProperties
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
GuavaOptionalSerializer
public GuavaOptionalSerializer(com.fasterxml.jackson.databind.type.ReferenceType fullType, boolean staticTyping, com.fasterxml.jackson.databind.jsontype.TypeSerializer vts, com.fasterxml.jackson.databind.JsonSerializer<Object> ser) -
GuavaOptionalSerializer
public GuavaOptionalSerializer(GuavaOptionalSerializer base, com.fasterxml.jackson.databind.BeanProperty property, com.fasterxml.jackson.databind.jsontype.TypeSerializer vts, com.fasterxml.jackson.databind.JsonSerializer<?> valueSer, com.fasterxml.jackson.databind.util.NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls)
-
-
Method Details
-
withResolved
protected com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>> withResolved(com.fasterxml.jackson.databind.BeanProperty prop, com.fasterxml.jackson.databind.jsontype.TypeSerializer vts, com.fasterxml.jackson.databind.JsonSerializer<?> valueSer, com.fasterxml.jackson.databind.util.NameTransformer unwrapper) - Specified by:
withResolvedin classcom.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>>
-
withContentInclusion
public com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>> withContentInclusion(Object suppressableValue, boolean suppressNulls) - Specified by:
withContentInclusionin classcom.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>>
-
_isValuePresent
protected boolean _isValuePresent(com.google.common.base.Optional<?> value) - Specified by:
_isValuePresentin classcom.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>>
-
_getReferenced
- Specified by:
_getReferencedin classcom.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>>
-
_getReferencedIfPresent
- Specified by:
_getReferencedIfPresentin classcom.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>>
-