首页> 外国专利> Partial Specialization of Generic Classes

Partial Specialization of Generic Classes

机译:泛型类的部分专业化

摘要

Generic classes may have more than one specializable type parameter and it may be desirable to specialize one or more of the type variables while not specializing others. The result of partial specialization may be one or more additional generic classes that are further specializable on the remaining type parameters. A runtime specializer may partially specialize a generic class to produce a partially specialized class and may subsequently further specialize the partially specialized class to generate a fully specialized class. Thus, rather than performing the specialization of a generic class all at once, such as by specializing MapK, V into Mapint, int or Maplong, int, one type parameter may be partially specialized, such as resulting in MapK, int, and then at some later time the remaining type parameter(s) may be specialized, such as to generate Mapint, int or Maplong, int.
机译:泛型类可能具有多个专门化的类型参数,并且可能希望专门化一个或多个类型变量,而不专门化其他变量。部分专业化的结果可能是一个或多个其他通用类,这些类在剩余类型参数上可以进一步专业化。运行时专家可以对通用类进行部分专业化以生成部分专用类,然后可以进一步对部分专用类进行进一步专用以生成完全专用的类。因此,与其一次执行泛型类的专业化(例如通过将Map 专门化为Map 或Map ),一种类型参数可以是部分专业化的,例如生成Map ,然后在以后的某个时间可以对其余类型参数进行专门化,例如生成Map 或Map

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号