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