Another example: Generic type inference.
另一个示例:通用类型推断。
Add explicit generic type parameters.
添加显式泛型类型参数。
Generic type parameters and primitive types.
泛型类型参数和基本类型。
DOUBLE is the generic type used in various models.
DOUBLE是在各种模型中使用的通用类型。
How to pattern-match a generic type argument?
如何匹配的泛型类型参数?
Enumerations cannot have generic type parameters.
枚举不能有泛型类型参数。
Generic type parameters known to be reference types.
已知为引用类型的泛型类型参数。
Generic type parameters can't be instantiated with primitive types.
不能用基本类型实例化泛型类型参数。
For example, a generic type such as List is erased to simply List.
例如,将象List这样的泛型类型擦除得只剩下List。
The generic type of the Future object is the result of the actual operation.
Future对象的通用类型是实际操作的结果。
A generic type definition is not assignable from a closed constructed type.
泛型类型定义不可以从封闭构造的类型赋值。
This is true even if the enclosing generic type is a closed constructed type.
即使封闭泛型类型为封闭构造类型,也是如此。
Note that a method is not generic just because it is declared in a generic type.
请注意,方法不会仅因为在泛型类型中声明而成为泛型方法。
Recall from Chapter 1 that Scala USES square brackets ([...]) for generic type parameters.
回忆在第1章中Scala使用方括号来指明范型类型参数。
But it's not always convenient to load classes into the JVM to access generic type information.
但是在JVM中装载类以访问泛型类型信息并不总是方便的。
If you define your own generic type of method the resulting assembly currently would not work.
如果您定义了自己的范型类型,则程序集可能无法运行。
The IL we’ve generated for the generic type already has the method its going to call picked out.
我们为泛型生成的IL代码已经定好了将要去选出调用的方法。
The type parameters of the generic type Map were inferred as [Nothing,Nothing] when the map was created.
范型类型Map的类型参数在map被创建时被推断为[Nothing, Nothing]。
The generic type argument declares the type of result this CriteriaQuery will return upon execution.
泛型参数声明CriteriaQuery在执行时返回的结果的类型。
The signature format extends the idea of field and method descriptors to include generic type information.
签名格式扩展了字段和方法描述符的概念,将泛型类型信息包含于其中。
A closed generic type is a type declaration where a particular type is specified for a type parameter.
封闭式泛型类型是为类型参数指定特定类型的类型声明。
Instantiation of a generic type or calls to existing generic methods can be added, deleted, or changed.
可以添加、删除或更改泛型类型的实例化或对现有泛型方法的调用。
As a concrete example, consider Listing 3, which declares a generic type Box and invokes the Box constructor.
作为具体示例,请考虑清单3,声明了通用类型Box并调用了Box结构函数。
For example, you might want to use another generic type system such as Service Data Object (SDO) (see Resources).
例如,你可能希望使用另外一种通用类型系统如服务数据对象(SDO)(参见参考资料)。
To support mixins through generic types, we need to have run-time representations of the generic type instantiations available.
为了通过泛型类型支持mixin,我们需要获得泛型类型实例化的运行时表示。
A contravariant delegate can be assigned another delegate of the same type, but with a less derived generic type parameter.
可以向逆变委托分配同一类型的其他委托,但需使用派生程度较小的泛型类型参数。
This method receives several parameters, including a SQL statement and a result handler, and returns an object of generic type t.
这个方法接收多个参数,包括一条sql语句和一个结果处理程序,并返回一个泛型t的对象。
The angle brackets assign a specific type (that is, the parameterized type) to the generic type represented by the "T" argument types.
尖括号为由 “T”参数类型表示的泛型指定具体类型。
Unchecked generic type operation The compiler will issue an error or warning whenever it encounters an unchecked generic type operation.
Uncheckedgeneric typeoperation编译器每当遇到未经检查的泛型类型操作,就将发出一个错误或者警告。
Unchecked generic type operation The compiler will issue an error or warning whenever it encounters an unchecked generic type operation.
Uncheckedgeneric typeoperation编译器每当遇到未经检查的泛型类型操作,就将发出一个错误或者警告。
应用推荐