An assertion cannot be used with class variable declarations for instance, but can be placed within any method.
不能将断言同实例的类变量声明一块使用,但却可以将其置于任何方法内。
If the class has a no-args constructor, and you want to use that constructor and then immediately invoke a single instance method on it, there's a shortcut.
如果该类具有一个无参构造函数,您想使用这个构造函数,然后立即在其上调用一个实例方法,那么有一种捷径。
Generally, object references can be obtained by the invocation of a class method or instance method.
一般来讲,可以通过类方法或实例方法的调用来获得对象引用。
The following code sample shows how to create a CBE instance using this method.
以下的代码例子展示如何用这种方法创建CBE实例。
Method chaining USES return values from methods to relay instruction context, which in this case is the object instance making the first method invocation.
方法链接使用方法的返回值来中转指令上下文,在这种情况下是进行第一个方法调用的对象实例。
Execution of an instance method is scoped to a particular instance of the class; you must create an instance of the class before you can invoke the method of the class.
一个实例方法的执行在类的一个特定示例中有效;您在调用该类的方法之前必须创建一个类的实例。
To maintain an authenticated session, pass the local HttpContext instance to every httpclient.execute method you call in your code.
为了维护一个认证的会话,您可以向代码中所调用的每一个httpclient . execute方法传递本地HttpContext实例。
After the message is initialized, send it using your Client class instance with the send method.
消息初始化成功后,可以通过对client类实例使用send方法来发送它。
Ultimately returns the new appointment instance, meaning that subsequent method calls are invoked on the new appointment
最后返回新appointment实例,这意味着随后的方法调用是在新的 appointment上进行的
The Log object could require its own initialization, to be performed by an init() instance method.
Log对象可以要求其自己的、由init()实例方法执行的初始化。
This method allows a component instance to perform custom cleanup actions.
removeInstance(...)方法允许组件实例执行定制的清空操作。
The add method appends a validator instance to the array.
add方法可将一个验证器实例追加到该数组。
In this section, we create a Action web service web service, and access the web service using the web_client_api function and the direct instance method invocation.
在本节中,我们将创建ActionwebService web服务,并访问使用web_client_api函数的web服务和直接实例方法调用。
To invoke the JAX-WS web service method, you need to instantiate a proxy instance and invoke the method on the proxy synchronously, as shown in Listing 4.
要调用这个JAX - WSweb服务方法,需要同步实例化一个代理实例并调用该代理上的方法,如清单4所示。
I can use a findNotificationInfo() method to find a notification info instance during a setAttribute() call or method invocation.
可以使用findNotificationInfo()方法在 setAttribute()调用或者方法调用时查找通知信息实例。
As stated before, the ofsearch.search method returns an instance of the SearchResponse class.
正如前面提到的,ofsearch .search方法返回searchresponse类的实例。
Call the EIS function by invoking the execute method on the instance of Interaction.
通过调用Interaction实例中的execute方法来获取EIS功能。
Thread 1 exits the synchronized block and returns instance from the getInstance() method.
线程1退出synchronized块并从getInstance()方法返回实例。
When you invoke an observer method on an instance of a structured type, the method returns the value of the attribute for that instance.
当您在结构化类型的实例上调用observer方法并为其相关联的属性指定一个新值时,该方法将返回这个实例的一个属性值。
To create an instance of the Factory Method Pattern, perform the same steps as for the Singleton Pattern.
要创建Factory方法模式的实例,执行同Singleton模式相同的步骤。
The method returns a strongly typed catalog response template instance. In addition, the method now takes in two request parameters.
此方法返回强类型化的Catalog响应模板实例。
This method takes an object that defines a query and returns a list of items that match that query. For instance, this method call returns a list containing the first phone number in the database.
该方法接受一个定义查询的对象,返回与该查询匹配的项列表。
However, this approach is widely applicable outside of the context of RMC: You could use it to write a method book, for instance.
无论如何,这种方法在RMC环境以外能够非常广泛地被利用。比如,您可以利用它编写一本方法书籍。
You might, for instance, need to change an existing method in order to incorporate compliance and governance at some point.
例如,您可能在某个时候为了合并遵从性和管理需要改变一个现有的方法。
A constructor is just a special method that creates an instance (or object) of a particular class.
构造函数只是创建特定类实例(或对象)的特殊方法。
If you are writing a method book, for instance, the method Web Site is replaced by a method book.
例如,如果您编写一本方法书,那么这个就会被一本方法书取代。
When an API method is invoked, where instance-based authorization applies.
当调用应用基于实例授权的API方法时。
For instance, you may change the method signature so that the collaborator object is passed in.
例如,可以更改方法签名,以便传入合作者对象。
When you have your translations (for instance, which method to call or which property to reference), write them next to the control actions that you documented in Step 1.
当您拥有了您的译文(比如,调用哪种方法或者参考哪个属性),将它们写在您在步骤1中记录的控件行为旁边。
For instance there is the method of tivoization, where the machine detects modified versions and shuts down.
比如有一种叫Tivo化的手段,机器一旦检测到修改了的(软件)版本就关闭.
应用推荐