@HandleClassMetadata @HandleBeanView public static class DefaultConverters.EnumConverter<T extends Enum<T>> extends Object implements Converter<T>
Constructor and Description |
---|
EnumConverter(Class<T> eClass,
boolean caseSensitive) |
Modifier and Type | Method and Description |
---|---|
T |
deserialize(ObjectReader reader,
Context ctx) |
void |
serialize(T obj,
ObjectWriter writer,
Context ctx) |
public void serialize(T obj, ObjectWriter writer, Context ctx)
serialize
in interface Converter<T extends Enum<T>>
serialize
in interface Serializer<T extends Enum<T>>
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 T deserialize(ObjectReader reader, Context ctx)
deserialize
in interface Converter<T extends Enum<T>>
deserialize
in interface Deserializer<T extends Enum<T>>
reader
- used to read data from.ctx
- the current context.Copyright © 2019. All rights reserved.