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