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