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