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