Class OptionalSerializer
- java.lang.Object
-
- org.codehaus.jackson.map.JsonSerializer<T>
-
- org.codehaus.jackson.map.ser.std.SerializerBase<Optional>
-
- com.atlassian.confluence.rest.serialization.OptionalSerializer
-
- All Implemented Interfaces:
org.codehaus.jackson.schema.SchemaAware
public class OptionalSerializer extends org.codehaus.jackson.map.ser.std.SerializerBase<Optional>
Serialize java Optional classes. Serializes the property if it is defined, or leaves it absent if it is not
-
-
Constructor Summary
Constructors Constructor Description OptionalSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serialize(Optional option, org.codehaus.jackson.JsonGenerator jgen, org.codehaus.jackson.map.SerializerProvider provider)
-
Methods inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
createObjectNode, createSchemaNode, createSchemaNode, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
-
-
-
-
Method Detail
-
serialize
public void serialize(Optional option, org.codehaus.jackson.JsonGenerator jgen, org.codehaus.jackson.map.SerializerProvider provider) throws IOException
- Specified by:
serialize
in classorg.codehaus.jackson.map.ser.std.SerializerBase<Optional>
- Throws:
IOException
-
-