As a general rule, add a PatternParameterDelegate statement to the constructor of each parameter class of the composed pattern.
为复合模式的每个参数类的构造函数增加PatternParameterDelegate声明已成为一种普遍规律。
The first part of the signature (within the angle brackets '<...>') is just the list of type parameter definitions for the class.
签名的第一部分(位于尖括号 ‘<...>’ 内)就是该类的类型参数定义清单。
Parameter values are accessed by calling a super class method.
通过调用父类的方法来访问参数值。
If that supplied class is a generic class, all fields of the class are processed as though the most general possible parameter type definitions were supplied for the class.
如果提供的类是泛型类,那么即使为这个类提供了最通用的参数类型定义,也会处理类的所有字段。
EXTERNAL NAME: This parameter determines the location of the class file or JAR file and the method inside the file for the particular stored procedure.
EXTERNALNAME:这个参数决定某个存储过程的类文件或JAR文件的位置以及文件内的方法。
First, I'll go through the code involved in building the description of a class with no parameter types defined.
首先,我要处理的代码负责构建不带指定参数类型的类的描述。
You can modify an existing class, pass it as a parameter, and take advantage of the API without requiring the base API to declare an abstract class or interface.
您可以修改已有类,将它作为参数传递,并利用API,而不需要基础 API声明一个抽象类或接口。
The primary constructor, which is the body of the entire class, has a parameter list that takes a label string and a list of callback functions.
主构造函数,类的主题,有一个参数列表来接受标签字符串和回调函数的列表。
In the functional version, I extracted the pure functions (ones that have no side-effects) into their own class, calling them by supplying parameter values.
在函数式版本中,我提取了纯函数(即没有副作用的函数)并将其放入它们各自的类中,通过提供参数值来调用它们。
What if someone inadvertently passes in a null value for the Class parameter?
如果有人不经意地为Class参数传入一个null值会怎么样呢?
With this option, the keyword typename is generated for every template parameter of type class.
通过这一选项,关键字typename被生成用来类类型的每一个模板参数。
Each of the schedule methods takes an object extending the TimerTask class as its first parameter.
每个schedule方法都采用一个扩展了timertask类的对象作为自己的第一个参数。
Figure 5. Creating a template parameter of type class.
图5.创建一个类类型的模板参数。
The first step is easy, you add a connection parameter to the servlet class you are creating, and then use the connection example, as shown above, to open the connection, as shown in Listing 7 below.
第一个步骤非常简单,您在所创建的servlet类中添加一个连接参数,然后使用这个连接示例,如上所述,打开该连接,如下面的清单7所示。
As the element will be created at a later stage, when we apply Asset 1, we add another template parameter called "marshaller" of type "class" (Figures 15 and 16).
当在后期应用资产1创建元素时,我们添加类型“类”的另一个模版参数,名为“marshaller ”(图15和16)。
You pass this information to the API by passing the Employee class as an extra parameter.
作为额外参数传递employee类,从而把这一信息传递给API。
The request processing class reads the parameter values from the request as follows
请求处理类从 reqeust 中读取参数值,如下所示
This hash map associates the field descriptor string for a generic class without any parameter types to the GenericTemplate for that class.
这个哈希映射把没有参数类型的泛型类的字段描述符字符串与这个类的GenericTemplate关联起来。
With mixins formulated as generic classes, we always have a handle on the parent class, the type parameter that the class extends.
将mixin明确表述为泛型类,我们就始终有父类的句柄,它是该类继承的类型参数。
The above revised web.xml now defines AnnotationConfigWebApplicationContext context class as part of context parameter and servlet elements.
以上修改后的web . xml现在定义了AnnotationConfigWebApplicationContext上下文类,并将其作为上下文参数和servlet元素的一部分。
The ServiceClass parameter specifies the service implementation class.
ServiceClass参数指定服务实现类。
Despite this identical bytecode, the type parameter information is recorded in the class format using a new signature attribute.
尽管是相同的字节码,但是类型参数信息用一个新的签名(signature)属性记录在类模式中。
An integer parameter xx relative to the class myapp.util.UtilClass is obtained by.
通过下面这段代码获得与myapp . ut il . utilclass类有关的整数参数xx。
The request handling class reads the parameter values for hdchkDelete.
请求处理类读取hdchkDelete的参数值。
The GenericTemplate instance holds the basic type parameter information for the class, along with the array of fields defined for the class.
GenericTemplate实例包含类的基本类型参数信息,还有为类定义的字段的数组。
As you will see later, each of the vars in the class declaration becomes a named parameter when constructing an instance of the class.
随后将看到,在构建类实例时,类声明中的每个var将成为一个命名的参数。
The first parameter is an instance of a class that implements the SensorListener interface.
第一个参数是实现 SensorListener 接口的类的实例。
Right-click the class and add a template parameter with name T. Add operations such as isEmpty():bool ,getSize():int.
在此类上右击并添加一个名为T的模板参数。 添加诸如isEmpty():bool ,getSize():int之类的操作。
As mentioned earlier, this only requires that the tag surrounding this section have a class parameter.
正如之前提到的,这只要求包围这个部分的标记具有class参数。
Create a template binding class named ShelvesList with a binding to the List class by setting the parameter t to Shelf.
建立一个绑定类型模板并将其命名为ShelvesList通过设定参数值t为Shelf经其与类List联系起来。
应用推荐