@HandleClassMetadata public static class DefaultConverters.ComplexMapConverter<K,V> extends Object implements Converter<Map<K,V>>
| Modifier and Type | Method and Description |
|---|---|
Map<K,V> |
deserialize(ObjectReader reader,
Context ctx) |
void |
serialize(Map<K,V> object,
ObjectWriter writer,
Context ctx) |
public void serialize(Map<K,V> object, ObjectWriter writer, Context ctx) throws Exception
serialize in interface Converter<Map<K,V>>serialize in interface Serializer<Map<K,V>>object - 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.JsonBindingExceptionJsonStreamExceptionExceptionpublic Map<K,V> deserialize(ObjectReader reader, Context ctx) throws Exception
deserialize in interface Converter<Map<K,V>>deserialize in interface Deserializer<Map<K,V>>reader - used to read data from.ctx - the current context.JsonBindingExceptionJsonStreamExceptionExceptionCopyright © 2019. All rights reserved.