Class LongPropertyWriter
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
-
- com.fasterxml.jackson.databind.ser.PropertyWriter
-
- com.fasterxml.jackson.databind.ser.BeanPropertyWriter
-
- com.fasterxml.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter<LongPropertyWriter>
-
- com.fasterxml.jackson.module.blackbird.ser.LongPropertyWriter
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.BeanProperty
,com.fasterxml.jackson.databind.util.Named
,java.io.Serializable
final class LongPropertyWriter extends OptimizedBeanPropertyWriter<LongPropertyWriter>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.ToLongFunction<java.lang.Object>
_acc
private long
_suppressableLong
private boolean
_suppressableSet
private static long
serialVersionUID
-
Fields inherited from class com.fasterxml.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter
_fastName, broken, fallbackWriter
-
Fields inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
_accessorMethod, _cfgSerializationType, _contextAnnotations, _declaredType, _dynamicSerializers, _field, _includeInViews, _internalSettings, _member, _name, _nonTrivialBaseType, _nullSerializer, _serializer, _suppressableValue, _suppressNulls, _typeSerializer, _wrapperName, MARKER_FOR_EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description LongPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter src, java.util.function.ToLongFunction<java.lang.Object> acc, com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object> ser)
protected
LongPropertyWriter(LongPropertyWriter base, com.fasterxml.jackson.databind.PropertyName name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.ser.BeanPropertyWriter
_new(com.fasterxml.jackson.databind.PropertyName newName)
void
serializeAsElement(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider prov)
void
serializeAsField(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider prov)
com.fasterxml.jackson.databind.ser.BeanPropertyWriter
withSerializer(com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object> ser)
-
Methods inherited from class com.fasterxml.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter
_handleProblem, _reportProblem, assignNullSerializer, assignSerializer, assignTypeSerializer
-
Methods inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
_depositSchemaProperty, _findAndAddDynamic, _handleSelfReference, depositSchemaProperty, depositSchemaProperty, fixAccess, get, getAnnotation, getContextAnnotation, getFullName, getGenericPropertyType, getInternalSetting, getMember, getName, getPropertyType, getRawSerializationType, getSerializationType, getSerializedName, getSerializer, getType, getTypeSerializer, getViews, getWrapperName, hasNullSerializer, hasSerializer, isUnwrapping, removeInternalSetting, rename, serializeAsOmittedField, serializeAsPlaceholder, setInternalSetting, setNonTrivialBaseType, toString, unwrappingWriter, willSuppressNulls, wouldConflictWithName
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
_suppressableLong
private final long _suppressableLong
-
_suppressableSet
private final boolean _suppressableSet
-
_acc
private final java.util.function.ToLongFunction<java.lang.Object> _acc
-
-
Constructor Detail
-
LongPropertyWriter
public LongPropertyWriter(com.fasterxml.jackson.databind.ser.BeanPropertyWriter src, java.util.function.ToLongFunction<java.lang.Object> acc, com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object> ser)
-
LongPropertyWriter
protected LongPropertyWriter(LongPropertyWriter base, com.fasterxml.jackson.databind.PropertyName name)
-
-
Method Detail
-
_new
protected com.fasterxml.jackson.databind.ser.BeanPropertyWriter _new(com.fasterxml.jackson.databind.PropertyName newName)
- Specified by:
_new
in classOptimizedBeanPropertyWriter<LongPropertyWriter>
-
withSerializer
public com.fasterxml.jackson.databind.ser.BeanPropertyWriter withSerializer(com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object> ser)
- Specified by:
withSerializer
in classOptimizedBeanPropertyWriter<LongPropertyWriter>
-
serializeAsField
public final void serializeAsField(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider prov) throws java.lang.Exception
- Specified by:
serializeAsField
in classOptimizedBeanPropertyWriter<LongPropertyWriter>
- Throws:
java.lang.Exception
-
serializeAsElement
public final void serializeAsElement(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider prov) throws java.lang.Exception
- Specified by:
serializeAsElement
in classOptimizedBeanPropertyWriter<LongPropertyWriter>
- Throws:
java.lang.Exception
-
-