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