public static final class DefaultConverters.TreeMapConverter<K,V> extends DefaultConverters.MapConverter<K,V>
| Constructor and Description |
|---|
TreeMapConverter(DefaultConverters.KeyAdapter<K> keyAdapter,
Converter<V> valueConverter) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<K,V> |
create() |
void |
serialize(Map<K,V> obj,
ObjectWriter writer,
Context ctx) |
deserializepublic TreeMapConverter(DefaultConverters.KeyAdapter<K> keyAdapter, Converter<V> valueConverter)
public void serialize(Map<K,V> obj, ObjectWriter writer, Context ctx) throws Exception
serialize in interface Converter<Map<K,V>>serialize in interface Serializer<Map<K,V>>serialize in class DefaultConverters.MapConverter<K,V>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.JsonBindingExceptionJsonStreamExceptionExceptionCopyright © 2019. All rights reserved.