Create a generic class for outputting VXML form elements.
创建输出VXML表单元素的通用类。
Each application of this generic class would extend a distinct parent class.
这个泛型类的每个应用都会继承一个不同的父类。
For example, a generic class JSplitPane may create an instance of Scrollable.
例如,泛型类JSplitPane可以创建Scrollable的实例。
Sometimes we want to restrict the potential type instantiations of a generic class.
有时我们想限制可能出现的泛型类的类型实例化。
Again, that's because one generic class may instantiate another with its own type parameters.
再提一次,那是因为一个泛型类可以用其自己的类型参数来实例化另一个泛型类。
Editing any generic class declaration.
编辑任何泛型类声明。
You can access a generic class indirectly using a nongeneric base interface.
您可以使用非泛型基接口间接访问泛型类。
We recommend that you define a generic class when you want to ensure type safety.
我们建议在需要确保类型安全时定义泛型类。
When you compile a generic class, MSIL contains placeholders for each parameterized type.
当你编译一个范型类时,MSIL为每一个参数化的类型预留了空间。
For example, in a generic class List, do you really want to prevent the construction of a List?
例如,在泛型类List中,您真的想要防止List的构造吗?
Place an upper limit on the number of instantiations of a generic class that a program can make.
对程序可以产生的泛型类的实例化数目设置上限。
By creating a generic class, you can create a collection that is type-safe at compile-time.
通过创建泛型类,您可以创建一个在编译时类型安全的集合。
We could put an upper limit on the number of instantiations of a generic class that a program can make.
我们对程序可以产生的泛型类的实例化数目设置上限。
Let's start with a simple generic class, a value container called Box, which holds a value of known type.
让我们从一个简单的泛型类开始(一个称为Box的值容器),它持有一个具有已知类型的值。
Throw an exception whenever a run-time instantiation of the generic class does not include a needed constructor.
只要泛型类的运行时实例化没有包括所需的构造函数,就抛出异常。
This generic class handles pairs of values, with the type parameters giving the types of the items in the pairs.
这个泛型类处理成对的值,类型参数给出了这些对中项目的类型。
Then, inside the generic class definition, the only constructors that could be called are those declared in the bound.
因而,在泛型类定义内部,唯一可调用的构造函数是那些在界限中声明的构造函数。
The problem here is that since the XPathHandler is a generic class, it does not know about the actual application handler.
现在的问题是,由于XPathHandler是一个一般类,所以它不知道实际的应用处理程序。
For example, if you know that your generic class is intended for use only with reference types, apply the class constraint.
例如,如果您知道您的泛型类仅用于引用类型,则应用类约束。
Wildcards play an important role in the type system; they provide a useful type bound for the family of types specified by a generic class.
通配符在类型系统中具有重要的意义,它们为一个泛型类所指定的类型集合提供了一个有用的类型范围。
This hash map associates the field descriptor string for a generic class without any parameter types to the GenericTemplate for that class.
这个哈希映射把没有参数类型的泛型类的字段描述符字符串与这个类的GenericTemplate关联起来。
Polymorphic recursion occurs when a generic class instantiates itself in its own body. For example, consider the following devious example.
当泛型类在其自己的主体中实例化其本身时,发生多态递归。
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.
就像泛型类的类型参数用尖括号括起来那样,泛型类型应用程序的参数也是用尖括号括起来的。
Another way of handling this problem would be to throw an exception whenever a run-time instantiation of the generic class does not include a needed constructor.
处理该问题的另一种方法是:只要泛型类的运行时实例化没有包括所需构造函数,就抛出异常。
The getSignatureInstance() method is what actually builds new generic class templates and then instantiates these templates for specific lists of parameter types.
getSignatureInstance()方法实际地构建新的泛型类模板,然后为参数类型的具体列表实例化这些模板。
When you define a generic class, you can apply restrictions to the kinds of types that client code can use for type arguments when it instantiates your class.
在定义泛型类时,可以对客户端代码能够在实例化类时用于类型参数的类型种类施加限制。
By allowing you to specify types that are acted on by a generic class or method, the generics feature shifts the burden of type safety from you to the compiler.
通过允许指定泛型类或方法操作的类型,泛型功能将类型安全的任务从您转移给了编译器。
The advantage of defining a generic class is that you define it just once, and your code can use it to create many objects that use a wide variety of data types.
定义泛型类别的优点是只要定义一次,程序码就可以用它来建立许多使用各种资料型别的物件。
Instead, Python creates a generic class instance, applies the instance attributes that were pickled, and sets the instance's _class_ attribute to point to the original class.
相反,Python创建一个通用类实例,并应用已进行过pickle的实例属性,同时设置该实例的_ class_属性,使其指向原来的类。
An internal interaction might be initiated by an actor (if subsystem use cases are the basis for the interaction), but more likely it would be started by a generic class called Sender.
内部交互可能由参与者启动(如果子系统用例是交互的基础),但它更可能是由叫作Sender的普通类启动的。
应用推荐