public final class ToStringKeySerializer extends KeySerializer<Object>
KeySerializer implementation that uses Object.toString() method.| Modifier and Type | Method and Description |
|---|---|
protected String |
doSerialize(Object value,
JsonSerializationContext ctx)
Serializes a non-null object into a
String to use as map's key. |
static ToStringKeySerializer |
getInstance() |
mustBeEscaped, serializepublic static ToStringKeySerializer getInstance()
ToStringKeySerializerprotected String doSerialize(@Nonnull Object value, JsonSerializationContext ctx)
KeySerializerString to use as map's key.doSerialize in class KeySerializer<Object>value - Object to serializectx - Context for the full serialization processCopyright © 2016. All Rights Reserved.