DOUBLE is the generic type used in various models.
DOUBLE是在各种模型中使用的通用类型。
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对象的通用类型是实际操作的结果。
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中装载类以访问泛型类型信息并不总是方便的。
Add explicit generic type parameters.
添加显式泛型类型参数。
Enumerations cannot have generic type parameters.
枚举不能有泛型类型参数。
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.
请注意,方法不会仅因为在泛型类型中声明而成为泛型方法。
The supplied type must expose a parameterless constructor that your generic type can access.
提供的类型必须公开泛型类型可以访问的无参数构造函数。
The generic type argument declares the type of result this CriteriaQuery will return upon execution.
泛型参数声明CriteriaQuery在执行时返回的结果的类型。
The type parameters of the generic type Map were inferred as [Nothing,Nothing] when the map was created.
范型类型Map的类型参数在map被创建时被推断为[Nothing, Nothing]。
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.
可以添加、删除或更改泛型类型的实例化或对现有泛型方法的调用。
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”参数类型表示的泛型指定具体类型。
Shows how to define a generic method in a dynamic module, how to define its generic type parameters, and how to execute the method.
示范如何在动态模组中定义泛型方法、如何定义它的泛型型别参数,以及如何执行此方法。
The Infer Generic Type Arguments refactoring automatically tries to guess the appropriate generic types for classes used in their raw form.
InferGeneric TypeArguments重构会自动地为原始形式的那些类推测恰当的泛型类型(generic type)。
A signature defines the actual parameter types used with a generic type, so it provides the information I'll need to process type substitutions.
签名定义了泛型实际使用的参数类型,所以它提供了处理类型替换时需要的信息。
That contract does not allow this method to throw a run-time exception (barring violations of generic type safety that qualify as bugs in the calling code).
这个合约不允许该方法抛出运行时异常(防止因违反泛型类型安全而成为调用代码中的bug)。
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.
就像泛型类的类型参数用尖括号括起来那样,泛型类型应用程序的参数也是用尖括号括起来的。
As an example application, I'm planning to use generic type information to improve the default binding generator provided with my JiBX XML data binding framework.
作为一个示例应用程序,我准备使用泛型类型信息改进我的JiBXXML数据绑定框架中提供的默认绑定生成器。
Because I want to demonstrate decoding generic types for this column, the type information needs to include the specific parameter types used with a generic type reference.
因为我想在这一期中演示泛型的解码,所以类型信息需要包含泛型引用所使用的具体的参数类型。
The key to the dependency-injection approach is that you query data by injecting the Class of the entity that the DAO will be querying, along with defining the generic type.
依赖项注入方式的关键是,在查询数据时,要注入DAO将查询的实体的Class并定义泛型类型。
The key to the dependency-injection approach is that you query data by injecting the Class of the entity that the DAO will be querying, along with defining the generic type.
依赖项注入方式的关键是,在查询数据时,要注入DAO将查询的实体的Class并定义泛型类型。
应用推荐