Type parameters (polymorphism).
类型参数(多态性)。
You may type parameters as before.
您可以像以前那样键入参数。
Add explicit generic type parameters.
添加显式泛型类型参数。
Generic type parameters and primitive types.
泛型类型参数和基本类型。
Enclosing type parameters in static members.
静态成员中的封闭类型参数。
Why bother putting bounds on type parameters?
为什么要自找麻烦在类型参数上设定范围呢?
Which types to generalize into type parameters.
将哪些类型通用化为类型参数。
Enumerations cannot have generic type parameters.
枚举不能有泛型类型参数。
"Naked" type parameters can't be used in new operations.
不能在new操作中使用“外露”类型参数。
Generic type parameters known to be reference types.
已知为引用类型的泛型类型参数。
Type parameters can be decorated with the keywords "In" and "Out.
类型参数可由关键字“In”和“Out”修饰。
Generic type parameters can't be instantiated with primitive types.
不能用基本类型实例化泛型类型参数。
However, the code in Listing 7 doesn't specify the type parameters.
然而,清单7中的代码并不指定类型参数。
"Naked" type parameters can't be used in casts or instanceof operations.
不能在数据类型转换或instance of操作中使用“外露”类型参数。
Enclosing type parameters should not be referred to inside static members.
不应在静态成员中引用封闭类型参数。
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.
因此,对类型参数的数据类型转换将变成对参数上界的转换。
Recall from Chapter 1 that Scala USES square brackets ([...]) for generic type parameters.
回忆在第1章中Scala使用方括号来指明范型类型参数。
Under the Configure primitive type parameters section, select the appropriate EGL type.
在Configureprimitivetype parameters部分下,选择合适的egl类型。
Again, that's because one generic class may instantiate another with its own type parameters.
再提一次,那是因为一个泛型类可以用其自己的类型参数来实例化另一个泛型类。
Luckily, the latest version of JSR-14 (1.3) outlaws the use of type parameters in static fields.
幸运的是,JSR - 14的最新版本(1.3)宣布在静态字段中使用类型参数是不合法的。
"Naked" type parameters can't be used in the implements or extends clauses of class definitions.
不能在类定义的implements或extends子句中使用“外露”类型参数。
The reason: a mixin's parameters may be instantiated with type parameters bound in some other context.
其原因是:在某些其它上下文中,mixin的参数可能用类型参数界限实例化了。
Please note that this function utilizes BIT_OR UDF we wrote to operate on bit-like data type parameters.
注意,该函数使用了我们编写的BIT _ ORUDF对类似于位数据类型的参数进行运算。
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.
包含额外的类型参数注释,告知我们这些实例化必须包含哪些构造函数。
Basic type parameters are defined within a program scope (Package or Class) or within a Topic by the parameter complex type.
由Parameter复杂类型在程序作用域(Package或Class)或在Topic中定义了基本类型参数。
Type parameters can also be declared within method and constructor signatures to create generic methods and generic constructors.
泛型参数也可以允许在方法和构造中定义,-这时方法和构造就被称之谓泛型方法和泛型参数。
应用推荐