However, there is not an option to check if objects implement the interfaces they claim to implement, and there is no way of introspecting an object to list the interfaces it supports.
不过,没有选项来检查对象是否实现了它们所声明的接口,而且也没有办法可以调查对象内部以使列出其支持的接口。
In addition, you must use the correct programming idiom to check if the collector has reclaimed the object before using it, and if it has, you must re-create the object first.
另外,您必须使用正确的编程风格以检查收集器在使用对象之前是否已经回收了它,如果已经回收了,您首先必须重新创建该对象。
Before you can check a value, you need to request the session object and then look inside it.
您需要请求会话对象,然后察看其内部才能检查一个值。
Incorrect objects: Using the address, it is possible to check that methods are being invoked on the desired object by matching to the address on the constructor call for that object.
错误对象:使用地址,通过与对象的构建函数调用的地址进行比对,可以检查出是不是在正确的对象上调用方法。
The algorithms also check properties of objects that are higher in the object hierarchy, checking up the chain of parents to the top object.
规则同样会检查对象层级结构中上层对象的熟悉,检查顶级对象与父类的连锁关系。
If you plan on working with an object, then you first have to check it out using the option DK_CM_CHECKOUT.
如果您计划使用对象,那么首先必须使用选项DK_CM_CHECKOUT对其进行检查。
To be on the safe side, check the instance type of the returned object.
为了安全起见,检查返回的对象的实例类型。
Additionally, Amazon tends to ask a lot of questions about object oriented design. Check out the object oriented design chapter for sample questions and Suggestions.
此外亚马逊还会问很多“面向对象设计”方面的问题,关于这一部分本书也有对应的例题。
Step 2: Check constraints on object argument.
第2步:检查对象参数约束。
Check it out for yourself: Just ask the Python interpreter for information about the int object by using the built-in help method (see Listing 1).
您自已可以对它进行检验:仅借助内置的help方法,就可以向Python解释器咨询关于int对象的信息(参见清单1)。
When the logical attachment is returned by the Claim Check service, the data handler attaches the logical attachment to the ShipmentRequisition data object.
当ClaimCheck服务返回逻辑附件时,数据处理程序将逻辑附件附加在ShipmentRequisition 数据对象上。
When the Claim Check service returns a token, the token is stored into the Order data object, into the same field that was used to store the logical attachment.
当ClaimCheck服务返回一个令牌时,令牌存储在Order数据对象中,存储在过去用于存储逻辑附件的同一字段中。
When the Claim Check service returns a token, the token is stored inside the Order data object, into the same field that was used to store the physical attachment.
当ClaimCheck服务返回一个令牌时,令牌存储在Order数据对象内,存储在过去用于存储物理附件的同一字段中。
Data: This element contains the actual attachment object passed to the Claim Check service.
data:该元素包含传递给ClaimCheck服务的真正附件对象。
In this method, you first check to see if the AddressStore object is initialized.
在这个方法中,您首先检查AddressStore对象是否已经初始化。
Here is the set of tests used to check that the object is well formed.
这里有用来检查对象是否良好格式的一组测试。
Here you simply check the entry as an object, but what about after you send it off as an actual feed?
此处您只是把条目作为对象进行检查,但是把它作为实际的feed发送之后会怎样呢?
You don't do so in this method, but you also could check for SQL warnings on the Statement object in the same manner.
在此方法中不这样做,但是还可以以同一种方法检查关于Statement对象的SQL警告。
For example, there are very usable convenience methods on the permissions objects that check whether the incoming permission object satisfies the J2EE deployment descriptor policy requirements.
例如,在permssion对象上提供了一些易于使用的有用方法,用于检查传入permission对象是否满足J2EE部署描述符的策略要求。
Then check the attribute of the hosts-the object should be online, its agent level should be level 1, and the supported protocols are SSH and CIM.
然后检查主机的属性—对象应该保持联机状态,其代理级别应该为一级,支持的协议应为ssh和CIM。
The first time you encounter a Dictionary object in a calling method, you can check its type before working with it.
在调用方法中第一次遇到Dictionary对象时,可以在使用它之前检查它的类型。
You first check whether the object implemented the serializable interface.
首先应该检查该对象是否实现了serializable接口。
If it is a PDPrinciplal object, then you call the implies method to check whether it has the desired permission.
如果是PDPrinciplal对象,则将调用implies方法来检查其是否具有所需的权限。
Check to see that the user has been authenticated and that a user object is available.
查看用户已被认证且user对象是可用的。
This design's weakness should be apparent: add() doesn't check the type of the provided object, and so exportAll() takes a grave risk in so blithely calling export().
这种设计的缺点显而易见:add()不检查所提供对象的类型,所以exportAll()在轻快地调用export() 时冒了致命的风险。
Once the message has been sent, the sender can store a reference to the Future object and check periodically for completion, or it can block and wait if needed by calling the get method.
消息被发送之后,发送者可以保存对Future对象的一个引用并定期检查是否完成,或者,它也可以通过调用get方法来阻塞和等待。
That is, we no longer check that the final balance of the test account is correct; we would check that function in the unit test for the Transaction object, not the AtmGui object.
也就是说,我们不再检查测试帐户的最终余额是否正确;我们将在对Transaction对象的单元测试中检查该函数,而不是在对atmgui对象的单元测试中。
Next, check the percentage of the CPU consumed by using the Date object.
下面,检查使用Date对象消耗的cpu百分比。
To avoid trying to handle the header of the CSV, I first check to see if the byte count (the key object) is not zero.
为了避免除了 CSV头部,首先检查是否字节数(key对象)为零。
The SideNote object has the ability to set the text for a check mark and see if the option was checked when the user closed it.
SideNote对象具有为复选标记设置文本并查看当用户关闭它时此选项是否还被选中的能力。
应用推荐