类的使用
cn.wjybxx.dsoncodec.GenericCodecInfo
使用GenericCodecInfo的程序包
-
cn.wjybxx.dsoncodec中GenericCodecInfo的使用
修饰符和类型方法说明static GenericCodecInfostatic GenericCodecInfo通过实现类创建一个Itemstatic GenericCodecInfoGenericCodecInfo.create(TypeInfo typeInfo, Class<? extends DsonCodec> codecType, Supplier<?> factory) 通过工厂创建一个itemDsonCodecConfig.getGenericDecoderInfo(Class<?> genericTypeDefine) DsonCodecConfig.getGenericEncoderInfo(Class<?> genericTypeDefine) 返回变量类型为GenericCodecInfo的类型的cn.wjybxx.dsoncodec中的方法修饰符和类型方法说明Map<Class<?>, GenericCodecInfo> DsonCodecConfig.getGenericDecoderDic()Map<Class<?>, GenericCodecInfo> DsonCodecConfig.getGenericEncoderDic()参数类型为GenericCodecInfo的cn.wjybxx.dsoncodec中的方法修饰符和类型方法说明DsonCodecConfig.addGenericCodec(GenericCodecInfo genericCodecInfo) 增加一个codec配置DsonConverterBuilder.addGenericCodec(GenericCodecInfo genericCodecInfo) DsonCodecConfig.addGenericDecoder(GenericCodecInfo genericCodecInfo) 添加解码器DsonConverterBuilder.addGenericDecoder(GenericCodecInfo genericCodecInfo) DsonCodecConfig.addGenericEncoder(GenericCodecInfo genericCodecInfo) 添加编码器DsonConverterBuilder.addGenericEncoder(GenericCodecInfo genericCodecInfo)