public class GuavaOptionalSerializer
extends com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>>
Constructor and Description |
---|
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) |
GuavaOptionalSerializer(com.fasterxml.jackson.databind.type.ReferenceType fullType,
boolean staticTyping,
com.fasterxml.jackson.databind.jsontype.TypeSerializer vts,
com.fasterxml.jackson.databind.JsonSerializer<Object> ser) |
Modifier and Type | Method and Description |
---|---|
protected 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) |
_useStatic, acceptJsonFormatVisitor, createContextual, getReferredType, isEmpty, isUnwrappingSerializer, serialize, serializeWithType, unwrappingSerializer
_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
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)
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)
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)
withResolved
in class com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>>
public com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>> withContentInclusion(Object suppressableValue, boolean suppressNulls)
withContentInclusion
in class com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>>
protected boolean _isValuePresent(com.google.common.base.Optional<?> value)
_isValuePresent
in class com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>>
protected Object _getReferenced(com.google.common.base.Optional<?> value)
_getReferenced
in class com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>>
protected Object _getReferencedIfPresent(com.google.common.base.Optional<?> value)
_getReferencedIfPresent
in class com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<com.google.common.base.Optional<?>>
Copyright © 2017 FasterXML. All rights reserved.