Class OptionalLongTypeSerializer
java.lang.Object
org.eclipse.yasson.internal.serializer.AbstractValueTypeSerializer<OptionalLong>
org.eclipse.yasson.internal.serializer.OptionalLongTypeSerializer
- All Implemented Interfaces:
javax.json.bind.serializer.JsonbSerializer<OptionalLong>
Serializer for
OptionalLong
type.-
Constructor Summary
ConstructorDescriptionOptionalLongTypeSerializer(Customization customization)
Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
serialize(OptionalLong obj, javax.json.stream.JsonGenerator generator, Marshaller marshaller)
Serializes an object to JSON.Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractValueTypeSerializer
getCustomization, serialize
-
Constructor Details
-
OptionalLongTypeSerializer
Creates a new instance.- Parameters:
customization
- Model customization.
-
-
Method Details
-
serialize
protected void serialize(OptionalLong obj, javax.json.stream.JsonGenerator generator, Marshaller marshaller)Description copied from class:AbstractValueTypeSerializer
Serializes an object to JSON.- Specified by:
serialize
in classAbstractValueTypeSerializer<OptionalLong>
- Parameters:
obj
- Object to serialize.generator
- JSON generator to use.marshaller
- Marshaller.
-