Generic type parameters and primitive types.
泛型类型参数和基本类型。
Why bother putting bounds on type parameters?
为什么要自找麻烦在类型参数上设定范围呢?
Generic type parameters can't be instantiated with primitive types.
不能用基本类型实例化泛型类型参数。
However, the code in Listing 7 doesn't specify the type parameters.
然而,清单7中的代码并不指定类型参数。
Enclosing type parameters should not be referred to inside static members.
不应在静态成员中引用封闭类型参数。
Add explicit generic type parameters.
添加显式泛型类型参数。
Which types to generalize into type parameters.
将哪些类型通用化为类型参数。
Enumerations cannot have generic type parameters.
枚举不能有泛型类型参数。
Generic type parameters known to be reference types.
已知为引用类型的泛型类型参数。
Not supported for incomplete generic type parameters.
不支援不完整的泛型型别参数。
Specify multiple type parameters using the appropriate number of commas.
使用数目适当的若干个逗号指定多个类型参数。
Modify the language syntax to include more elaborate bounds on the type parameters.
修改语言的语法以包括更详尽的类型参数界限。
So, casts to type parameters will turn into casts to the upper bound of the parameter.
因此,对类型参数的数据类型转换将变成对参数上界的转换。
Under the Configure primitive type parameters section, select the appropriate EGL type.
在Configureprimitivetype parameters部分下,选择合适的egl类型。
Recall from Chapter 1 that Scala USES square brackets ([...]) for generic type parameters.
回忆在第1章中Scala使用方括号来指明范型类型参数。
Luckily, the latest version of JSR-14 (1.3) outlaws the use of type parameters in static fields.
幸运的是,JSR - 14的最新版本(1.3)宣布在静态字段中使用类型参数是不合法的。
Constraints on each type parameter are independent of constraints on other type parameters.
每个型别参数的条件约束都与其他型别参数的条件约束无关。
The type parameters of the generic type Map were inferred as [Nothing,Nothing] when the map was created.
范型类型Map的类型参数在map被创建时被推断为[Nothing, Nothing]。
Another possibility is to modify the language syntax to include more elaborate bounds on the type parameters.
另一种可能性是修改语言语法以包括更详尽的类型参数界限。
This generic class handles pairs of values, with the type parameters giving the types of the items in the pairs.
这个泛型类处理成对的值,类型参数给出了这些对中项目的类型。
Include additional annotations on type parameters telling us which constructors those instantiations must contain.
包含额外的类型参数注释,告知我们这些实例化必须包含哪些构造函数。
When there are no explicit type parameters, type inference is used to determine the types of parameters of functions.
没有显式类型参数时,会使用类型推理来确定函数的参数类型。
Returns the type identified by the specified metadata token, in the context defined by the specified generic type parameters.
在由指定的泛型类型参数定义的上下文中,返回由指定的元数据标记标识的类型。
Returns the field identified by the specified metadata token, in the context defined by the specified generic type parameters.
在由指定的泛型类型参数定义的上下文中,返回由指定的元数据标记标识的字段。
Shows how to define a generic method in a dynamic module, how to define its generic type parameters, and how to execute the method.
示范如何在动态模组中定义泛型方法、如何定义它的泛型型别参数,以及如何执行此方法。
Recall that by "naked" type parameters, we mean type parameters that lexically occur alone, not as a syntactic subcomponent of a larger type.
回想一下,对于“外露”类型参数,我们是指在词汇上单独出现的类型参数,而不是更大类型的语法子组件。
You must explicitly add the template type parameters to the template class name when using it as a template parameter in a base class list.
当要将某个模板类型参数用作基类列表中的模板参数时,必须显式地将该模板类型参数添加到模板类名中。
Just as the type parameters of a generic class are wrapped in Angle brackets, the arguments of a generic type application are wrapped in Angle brackets as well.
就像泛型类的类型参数用尖括号括起来那样,泛型类型应用程序的参数也是用尖括号括起来的。
Similarly, instanceof checks on naked type parameters will result in an "unchecked" warning at compile time and the check will not occur as expected at runtime.
同样,对“外露”类型参数的instance of检查将在编译时产生“unchecked”警告,而且检查将不会如期在运行时进行。
The diamond feature uses type inference to figure out the type parameters on the right side of the assignment, allowing the preceding example to be rewritten as
Diamond功能使用类型推断计算出赋值右侧的类型参数,并允许将前面的示例重新编写为
应用推荐