public class GlobalSerializeMapping extends Object
Constructor and Description |
---|
GlobalSerializeMapping() |
Modifier and Type | Method and Description |
---|---|
static JSONDeserializer<?> |
getDeserializer(Type type)
获取自定义的反序列化器,如果未定义返回
null |
static JSONSerializer<? extends JSON,?> |
getSerializer(Type type)
获取自定义的序列化器,如果未定义返回
null |
static void |
put(Type type,
JSONArraySerializer<?> serializer)
加入自定义的序列化器
|
static void |
put(Type type,
JSONDeserializer<?> deserializer)
加入自定义的反序列化器
|
static void |
put(Type type,
JSONObjectSerializer<?> serializer)
加入自定义的序列化器
|
public static void put(Type type, JSONArraySerializer<?> serializer)
type
- 对象类型serializer
- 序列化器实现public static void put(Type type, JSONObjectSerializer<?> serializer)
type
- 对象类型serializer
- 序列化器实现public static void put(Type type, JSONDeserializer<?> deserializer)
type
- 对象类型deserializer
- 反序列化器实现public static JSONSerializer<? extends JSON,?> getSerializer(Type type)
null
type
- 类型null
public static JSONDeserializer<?> getDeserializer(Type type)
null
type
- 类型null
Copyright © 2024. All rights reserved.