public static class KeyValuePair.KeyValuePairJsonSerializer
extends java.lang.Object
Constructor and Description |
---|
KeyValuePairJsonSerializer() |
Modifier and Type | Method and Description |
---|---|
JsonElement |
serialize(KeyValuePair src,
java.lang.reflect.Type typeOfSrc,
JsonSerializationContext context)
KeyValuePair json格式序列化实现函数
|
public JsonElement serialize(KeyValuePair src, java.lang.reflect.Type typeOfSrc, JsonSerializationContext context)
src
- 原数据typeOfSrc
- 原数据类型context
- 序列化上下文