java.lang.Object
cn.wjybxx.dsoncodec.GenericCodecInfo
- 作者:
- wjybxx date - 2024/10/11
-
字段概要
字段 -
方法概要
修饰符和类型方法说明static GenericCodecInfostatic GenericCodecInfo通过实现类创建一个Itemstatic GenericCodecInfo通过工厂创建一个item
-
字段详细资料
-
typeInfo
-
codecType
-
factory
-
-
方法详细资料
-
create
- 参数:
typeInfo- 泛型擦除后的类型信息codecType- 编解码器的类型
-
create
public static GenericCodecInfo create(TypeInfo typeInfo, Class<? extends DsonCodec> codecType, Class<?> implType) 通过实现类创建一个Item- 参数:
typeInfo- 泛型擦除后的类型信息codecType- 编解码器的类型implType- 创建的实例类型 -- 需包含无参构造函数,自动转factory
-
create
public static GenericCodecInfo create(TypeInfo typeInfo, Class<? extends DsonCodec> codecType, Supplier<?> factory) 通过工厂创建一个item- 参数:
typeInfo- 泛型擦除后的类型信息codecType- 编解码器的类型factory- 创建的实例类型 -- 需包含无参构造函数,自动转factory
-