@HandleClassMetadata public static class DefaultConverters.PriorityQueueConverter<E> extends DefaultConverters.CollectionConverter<E>
Constructor and Description |
---|
PriorityQueueConverter(Class<E> eClass,
Converter<E> elementConverter) |
Modifier and Type | Method and Description |
---|---|
protected Collection<E> |
create() |
void |
serialize(Collection<E> array,
ObjectWriter writer,
Context ctx) |
deserialize, getElementConverter
public void serialize(Collection<E> array, ObjectWriter writer, Context ctx) throws Exception
serialize
in interface Converter<Collection<E>>
serialize
in interface Serializer<Collection<E>>
serialize
in class DefaultConverters.CollectionConverter<E>
array
- 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.JsonBindingException
JsonStreamException
Exception
protected Collection<E> create()
create
in class DefaultConverters.CollectionConverter<E>
Copyright © 2019. All rights reserved.