How to use generic types in method signature?
如何在方法签名使用泛型类型?
Fix the bug: lifetime managers with open generic types.
修复bug:在生命周期管理器中使用泛型类型。
In the case of mixins as generic types, we can apply the same solution.
在mixin作为泛型类型的情况中,我们可以应用同样的解决方案。
Because of the mechanism used by Tiger and JSR-14 to implement generic types on the JVM.
这要归因于tiger和JSR - 14为在JVM上实现泛型类型所使用的机制。
Major refactoring internally to use generic collections instead of the non generic types.
在框架内部的重要重构使用了泛型集合类代替非泛型的集合性。
Let's start by reviewing the limitations on the use of generic types in Tiger and jsr-14.
让我们先查阅一下Tiger和JSR - 14中泛型类型的使用限制。
There are four generic types of reactive agents that are traditionally discussed in texts.
一般地,常在文本中讨论的反应代理有4种。
Describes which actions are supported when using generic types for COM interoperability.
描述在使用用于COM互操作性的泛型类型时,哪些操作受支持。
Specialized generic types are created once for each unique value type used as a parameter.
在泛型类中定义的委托,可以与类的方法一样地使用泛型类的类型参数。
Learning to use generic types is quite straightforward, but there are also pitfalls to be avoided.
学习如何使用泛型类型相当简单,但是同样也需要避免一些缺陷。
You can also find these generic types in the drop-down control for artifact type in the Search view.
您也可以在Search 视图中的通过下拉操作,找到这些类型。
Erasing in this manner introduces holes in the type system that limit how we can safely use generic types.
以这种方式进行擦除在类型系统中引入了缺陷,这些缺陷限制我们使用泛型类型的安全性。
Let's start off with an introduction to what generic types are and what features are being added to support them.
让我们从介绍泛型类型是什么以及添加了什么特性来支持它们开始吧。
The utility of wildcards in the type system comes partially from the fact that generic types are not covariant.
通配符在类型系统中的作用部分来自其不会发生协变(covariant)这一特性。
One thing to note is that I put the Origin type along with other generic types in a DataTypes schema (see Listing 2).
要说明的一点是,我将Origin类型连同其它一些通用类型一起放在了DataTypes模式中(请参阅清单2)。
With type erasure, generic types are used for type checking only; afterwards, they are replaced with their upper bound.
使用类型消除(type erasure),泛型类型仅用于类型检查;然后,用它们的上界替换它们。
Specifically, I'd like to talk about generic types and highlight the changes and tweaks in Tiger designed to support them.
我特别想谈谈泛型类型并重点讲述在Tiger 中为了支持它们而进行的更改和调整。
These built-in link relations are designed to cover the most common and generic types of links expected to be used with feeds.
这些内建的链接关系是为提要(feed)中可能使用的最常见、最一般的链接类型设计的。
To support mixins through generic types, we need to have run-time representations of the generic type instantiations available.
为了通过泛型类型支持mixin,我们需要获得泛型类型实例化的运行时表示。
By incorporating mixins using generic types, we are able to work around many of the key limitations of other formulations of mixins.
通过使用泛型类型合并mixin,我们能解决其它mixin公式的许多关键限制。
Starting from an initial class, the analyzer chains through all referenced classes, handling substitution of generic types as it goes.
该分析器从初始类开始将引用的所有类贯穿起来,在此过程中处理泛型类型的置换。
Dependent types are types parameterized by run-time values (compare this with generic types, which are parameterized by other types).
从属类型是运行时值参数化的类型(与泛型比较,泛型是其它类型参数化的类型)。
If these issues are not handled well, the benefits of generic types can easily be outweighed by decreases in expressiveness and robustness.
如果这些问题处理得不当,那么可表达性和健壮性的降低会轻易地抵消泛型类型的好处。
The Infer Generic Type Arguments refactoring automatically tries to guess the appropriate generic types for classes used in their raw form.
InferGenericTypeArguments重构会自动地为原始形式的那些类推测恰当的泛型类型(generic type)。
We just have to devise some notion of view that works in the context of generic types and also allows for backward compatibility with the JVM.
我们只要设计一些观点,这些观点在泛型类型的上下文中有效,并且还允许向后兼容 JVM。
This technique is extremely powerful; we get almost all of the increased precision of generic types, but we maintain compatibility with the JVM.
这一技术的功能极其强大;我们可以使几乎所有泛型类型的精度得到增强,但又与JVM保持兼容。
You might think the same is true of generic types as well — that List is a supertype of List, and that you can pass a List where a List is expected.
您也许认为这一原理同样适用于泛型类型——List是List的超类型,那么可以在需要List的地方传递List。
As I covered in the last column, signatures are an item added to the class file format by generics; only references to generic types have signatures.
正如我在前一期中介绍的,签名是泛型添加到类文件格式中的项目;只有对泛型的引用才有签名。
It would be much better to simply prevent the programmer from referring to generic types in static fields, as is done in the case of static methods and classes.
象对静态方法和类所做的那样,只要防止程序员在静态字段中引用泛型类型,情况就会好很多。
We also touched upon how the incarnation of generic types scheduled for Tiger includes several "kinks" that limit the contexts in which generic types can be used.
我们还说明了为Tiger制定的泛型类型的实现怎么会包含数个“缺陷”,这些缺陷限制了可以使用泛型类型的上下文。
应用推荐