Template functions are always specified with fully parameterized types.
模板函数总是用完全参数化的类型指定的。
Syntax error, parameterized types are only available if source level is 5.0.
语法错误,泛型只有在5.0以上的版本才支持。
So, to avoid ambiguities, Scala USES square brackets instead for parameterized types.
所以,为了避免二义性,Scala使用了方括号来声明参数类型。
Parameterized types are also going to be part of Tiburón for both the Win32 and .NET platforms.
对Win32和.NET平台来说,参数化类型也将会成为Tiburón的一部分。
This is nice, but doesn't really take advantage of another important Tiger feature: generics (sometimes called parameterized types).
这么做很好,但是没有真正利用到Tiger的另一项特性——泛型(有时也叫作参数化类型)。
Scala also allows types to be declared in classes, as we saw in the section called "Abstract types And Parameterized types" in Chapter 2, type Less, Do More.
Scala也允许在类中声明类型,正如我们在《第2章-打更少的字,做更多的事》中的“抽象类型和参数化类型”章节中所见。
It is parameterized based on its input and output data types.
它是基于其输入和输出数据类型参数化的。
Smart: The smart tracer is a parameterized type that maps to one of the other types in the tracer.
智能:智能跟踪程序是一个参数化的类型,它与跟踪程序中的某种其他类型相映射。
Generic types can be thought of as type "functions"; they are parameterized by type variables that can then be instantiated with various type arguments depending on context.
可以将泛型类型看作是类型“函数”;它们通过类型变量进行参数化,这些类型变量可以根据上下文用各种类型参数进行实例化。
Within enterprise search, there are many different types of searches: keyword, Boolean, range, faceted metadata, semantic, natural languages and parameterized.
在企业搜索中,搜索分许多类型:关键字、布尔值、范围、多层面元数据(faceted metadata)、语义、自然语言和参数化。
There is a single method to implement called map (which is parameterized based on the types of the (key,value) pair that are the input).
这里有一个名为 map的简单实现方法,该方法基于输入 (key,value) 对的类型进行参数化。
Finally, this data is written to the Context object (whose write method is parameterized based on the types of the (key, value) pair that are produced by map).
最后,这个数据被写到Context对象(它的write方法基于映射生成的(key,value)对的类型进行参数化)。
Dependent types are types parameterized by run-time values (compare this with generic types, which are parameterized by other types).
从属类型是运行时值参数化的类型(与泛型比较,泛型是其它类型参数化的类型)。
Ownership types are types of objects that are parameterized by an owner object.
所有者类型是一个所有者对象参数化的对象的类型。
This subinterface provides information about array types, where the component type of the array is either parameterized or a type variable.
这个子接口提供了关于数组类型的信息,数组的组件类型可以是参数化的,也可以是一个类型变量。
The angle brackets assign a specific type (that is, the parameterized type) to the generic type represented by the "T" argument types.
尖括号为由 “T”参数类型表示的泛型指定具体类型。
Another approach to expressing invariants is to bolster the type system with generic types, types parameterized by other types (the topic of our the most recent series of articles in this column).
表示不变量的另一种方法是泛型-作为其它类型参数化的类型来支持类型系统(本专栏中最近一系列文章的主题)。
The canonical example of dependent types is that of an array type parameterized by the size of the array.
从属类型的标准实例是数组大小参数化的数组。
The Listing 9 output gives the basics of how generic types are parameterized for use, including the types of items specified for the m_files and m_directories lists in the DirInfo class.
清单9的输出给出了泛型类型是如何参数化使用的基本情况,包括为在dirinfo类中列出的m_files和m_directories项指定的类型。
It is parameterized based on the types of the input and output (key, value) pairs.
它基于输入和输出(key,value)对的类型进行参数化。
Like this, all types and functions are clearly parameterized what needs to be give and what will be returned.
这样,所有的类型和职能具有明显的参数化需要采取什么给什么将返回。
Generics permit classes, structs, interfaces, delegates, and methods to be parameterized by the types of data they store and manipulate.
泛型允许类,结构,接口,代理还有方法被他们存储和操作数据类型参数化。
Generics permit classes, structs, interfaces, delegates, and methods to be parameterized by the types of data they store and manipulate.
泛型允许类,结构,接口,代理还有方法被他们存储和操作数据类型参数化。
应用推荐