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