public abstract class BaseNumberKeySerializer<N extends Number> extends KeySerializer<N>
KeySerializer for Numbers.| Constructor and Description |
|---|
BaseNumberKeySerializer() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
doSerialize(N value,
JsonSerializationContext ctx)
Serializes a non-null object into a
String to use as map's key. |
serializeprotected String doSerialize(@Nonnull N value, JsonSerializationContext ctx)
KeySerializerString to use as map's key.doSerialize in class KeySerializer<N extends Number>value - Object to serializectx - Context for the full serialization processCopyright © 2013. All Rights Reserved.