@HandleClassMetadata @HandleBeanView public static final class DefaultConverters.BooleanConverter extends Object implements Converter<Boolean>
| Modifier and Type | Field and Description |
|---|---|
static DefaultConverters.BooleanConverter |
instance |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
deserialize(ObjectReader reader,
Context ctx) |
void |
serialize(Boolean obj,
ObjectWriter writer,
Context ctx) |
public static final DefaultConverters.BooleanConverter instance
public void serialize(Boolean obj, ObjectWriter writer, Context ctx)
serialize in interface Converter<Boolean>serialize in interface Serializer<Boolean>obj - we want to serialize. The object is of type T or a subclass (if this serializer
has been registered for subclasses).writer - to use to write data to the output stream.ctx - the current context.public Boolean deserialize(ObjectReader reader, Context ctx)
deserialize in interface Converter<Boolean>deserialize in interface Deserializer<Boolean>reader - used to read data from.ctx - the current context.Copyright © 2019. All rights reserved.