为什么这个解决问承诺响应返回对象的值一个承诺吗?
Why does this resolved Q promise responds to valueOf with a promise?
事实上,该消息将可能被发送到类,然后这将导致一个已创建对象的返回值,所以与我说的有点不符。
Actually, this message would likely be sent to the class that would then result in a return value of the created object, so I cheated a bit.
参见清单5,它是其中一个接口方法的示例,列出电话簿条目并返回它们的值对象表示。
See listing 5 for an example of one of the interface methods for listing phonebook entries and returning their value object representations.
方法链接使用方法的返回值来中转指令上下文,在这种情况下是进行第一个方法调用的对象实例。
Method chaining USES return values from methods to relay instruction context, which in this case is the object instance making the first method invocation.
导航器将获取作为输入的请求模板和值对象,并返回响应模板。
The navigator takes a request template and a value object as input and returns and response template.
该方法必须返回反序列化的值对象。
存储系统保证如果对象没有新的更新,最终(在不一致窗口关闭之后)所有访问都将返回最后更新的值。
The storage system guarantees that if no new updates are made to the object eventually (after the inconsistency window closes) all accesses will return the last updated value.
在经典的设计中,这些方法中的值对象或数据传输对象用作方法参数并在需要复杂对象时返回值。
In a classic design, value objects or data transfer objects in those methods are used as method parameters and return values when complex objects are required.
另一个好处是,它隐藏了事件对象和处理程序返回值的细节。
It's also nice because it hides the details of the event objects and handler return values.
在facade接口中一个单独的方法可以执行一个或多个command对象,因此facade输入参数和方法返回值需要进行很好的选择。
A single method on the facade interface can execute one or more command objects, so the facade input parameters and the method return value need to be well chosen.
VirtualSystems类(清单4和5)实现了返回所有必要值的方法,并封装了字典对象。
The VirtualSystems class (Listings 4 and 5) implements methods to return all the necessary values, wrapping the dictionary object inside.
self对象是由Box构造函数创建的,后者也覆盖返回值,如清单3 所示。
The self object is created by the Box constructor, which also overrides the return value, as seen in Listing 3.
这些Value方法返回一个Value对象,它们会把这些值加到枚举值的集合中去。
These Value methods return a Value object and they add the value to the enumeration’s collection of values.
attribute是一个强制属性,用于指定该LDAP对象的哪些属性包含要返回的值。
Attribute is a mandatory attribute that specifies which attribute of the LDAP object contains the value (s) to be returned.
返回值是该函数push到栈上的对象的数量。
The return value is the number of objects the function pushed on the stack.
函数还可返回值(更为正式的说法是:对象),包括像tuple这样的python容器。
The function can also return a value (or, more formally, an object), including a Python container like a tuple.
对标准程序库而言,有很多程序库函数在固定的对象中返回值,总是重复使用同一对象,这就使得那些函数不可重入。
As with the standard library, there can be many library functions that return values in fixed objects, always reusing the same objects, which causes the functions to be non-reentrant.
如果属性值与搜索值匹配,那么该方法就成功地找到预期的测试对象,并返回该对象。
If the property value matches the search value, then the method has successfully found the desired test object and returns it.
在数据逻辑方法中,返回值是一个对象或与方法签名相匹配的值。
In a data logic method, the return value is an object or value that matches the method signature.
很多库函数在固定的对象中返回值,总是使用同一对象,它们全都会导致相同的问题。
Many library functions return values in a fixed object, always reusing the same object, and they can all cause the same problem.
将表单字段设置为在返回的JSON对象内指定的值。
Set the form field to the value specified in the return JSON object.
这是弱一致性的一种特殊形式;存储系统保证如果对象没有新的更新,最终所有访问都将返回最后更新的值。
This is a specific form of weak consistency; the storage system guarantees that if no new updates are made to the object, eventually all accesses will return the last updated value.
如果进程已经看到过数据对象的某个值,那么任何后续访问都不会返回在那个值之前的值。
If a process has seen a particular value for the object any subsequent accesses will never return any previous values.
如果进程已经看到过数据对象的某个值,那么任何后续访问都不会返回在那个值之前的值。
If a process has seen a particular value for the object, any subsequent accesses will never return any previous values.
代码块就是将返回一个值的一组代码,如果没有返回值,那么会返回一个NULL对象。
A code block is simply a block of code that returns a value, and if no value is returned then a NULL object is returned.
对于有多个返回值的数据库对象,存储过程有其天然的优势。
Stored procedures have a nature of their own when it comes to database objects having multiple return values.
外观根据执行的操作返回或使用适当的值对象。
The facade in turn returns or consumes the appropriate value object, based on the action performed.
查找器的返回值通常是DAO负责的域对象集合。
The return value of a finder is normally a collection of the domain object for which the DAO is responsible.
您可以通过先获得存储在响应对象里的xmlrpcval对象,然后请求xmlrpcval对象的标量值,来检索监听器返回的值。
You can retrieve the value that the listener returned by first getting the xmlrpcval object stored in the response object and then asking for the xmlrpcval object's scalar value.
这两个值将在我们的哈希表中得到对象返回值后被消除。
These two values will be lost after we get the object back from the hashtable.
应用推荐