Methods that return objects return null.
返回对象的方法返回null。
The procedure can return null or non-null values.
该过程可以返回null或非null值。
Should I return NULL on functions that free structs?
我应该返回,免费的结构功能无效?
If the two linked lists have no intersection at all, return null.
问题描述:找出两个链表相交的地方。
This call is also non-blocking, which means that getnb can return null.
此调用也是非阻塞的,这意味着getnb可以返回null。
In that case, the second map access would return null and an exception would be thrown.
在这种情况下,第二个映射访问可能会返回null,并抛出一个异常。
I've stumbled on articles that says its good programming practice to never return NULL.
我偶然发现的文章,说其良好的编程实践永远不会返回null。
I decided to return null, because when timeouts are not expected, this check could be skipped.
我决定返回null,因为当预料不会超时的时候,可以跳过该检查。
This method will return null if the focus owner is not in the same context as the calling thread.
如果该焦点所有者未和调用线程处于同一个上下文中,那么该方法会返回空。
Each of these methods will return null if its opposite component or window is in a different context.
如果其对立组件或窗口处于一个不同的上下文,这些方法中每一个都会返回空。
Folders will never be able to return selection properties in the example connector; instead, they return null.
在示例连接器中,文件夹不能返回选择属性;而是返回null。
There were two options for what should happen when the retrieval timeout occurs: return null or throw an exception.
对于在检索超时发生时应当发生的事情,有两个选择:返回null或者引发异常。
You'll want to be sure to always return null if no match occurs, so that entity resolution will occur normally in non-special cases.
当不匹配时,您会希望始终确保返回null ,这样实体解析在非特殊情况下都可以正常进行。
The opendir() and readdir() functions both return NULL if a problem occurs and the errno global variable is set to indicate what went wrong.
在出现问题时,opendir()和readdir()函数都会返回NULL,并且将设置全局变量 errno 的值,以指出所出现的错误。
If this method returns void, no change is needed, but if it returns DataObject, change the last line from return null; to return input;.
如果这个方法返回void,则不需要任何更改;如果返回DataObject,则将最后一行从return null;更改为returninput;。
Looking closely at Listing 10 reveals the issue: I initially coded the pop method to return null if the internal container had anything in it.
仔细观察清单10会发现:一开始我将pop方法编写为当内部容器中有项目时,就返回null。
A null return value implies all active slices, while an empty array will raise an exception.
空返回值意味着所有片都是活动的,而空数组则会引发一个异常。
If you return a null array, the clients of the code must write extra code to check whether the return value is null (as shown in Listing 13).
如果您返回零数组,该代码的客户端必须编写额外的代码来检查返回值是否为零(如清单13所示)。
Most calls return either -1, NULL, or EOF to indicate error.
大多数调用返回- 1、NULL或EOF来表示错误。
Note that we specify HANDLESNULLS so that IDS allows our function to return a value when the column value is NULL.
注意,我们指定了HANDLESNULLS,因此,当列值为NULL时,IDS将允许函数返回一个值。
If there are no WatchKeys to return by the end of the timeout, this method returns null.
如果在超时时间结束时,没有WatchKeys返回,这一方法将会返回null。
The static Current property uses the Stack.Peek method to return the T instance at the top of the stack if one exists, returning null if the Stack is empty.
静态Current属性使用Stack.Peek方法返回位于堆栈顶端的T实例(如果存在),如果Stack 为空则返回空。
This rule set contains some of the more questionable checks, including assigning null to a variable, multiple return points from a method, and importing from the sun packages.
这个规则集包含一些更有问题的检验,其中包括把null赋值给变量、方法中有多个返回点,以及从sun包导入等。
The CompanySystemContractManager class in Listing 4 checks only if arguments or return values are null, but it's possible to enhance it to add extremely sophisticated checks.
清单4中的CompanySystemContractManager类只检查参数或者返回值是否为nulll,但是可以使其增强为加入特别复杂的检查。
In that case, get returns null, making it even more important than usual to test the return value of get for null.
在这种情况下,get返回null,这使得测试get的返回值是否为null变得比平时更重要了。
After executing the query against the database, return the results of the query as list or null if no synonym is found.
对数据库执行查询后,以列表形式返回查询结果,如果没有找到同义词的话则返回null。
It's a good idea to try to get config service first, then call createConfigService()when its return value is null.
先获取配置服务,然后在其返回值为空(null)时再调用createConfigService() 是个不错的主意。
As such, inconsistencies in the model will cause build failures. For example, an EOperationImpl may declare a certain return type, but the return ref property may refer to a different type or be null.
所以,模型中的不一致性将会导致构建失败,例如,一个EOperationImpl可以声明某种返回类型,但是Returnref属性可以引用不同的类型或者为空。
It is transitive: for any non-null reference values x, y, and z, if x.equals (y) returns true and y.equals (z) returns true, then x.equals (z) should return true.
具有传递性:对于任何非空的参考值x、y和z,如果x.e quals (y)返回真值并且y.e quals (z)也返回真值,那么x.e quals (z)也应该返回真值。
In cases where the field was null, we could also add a message to the FacesContext directing the associated component to return navigation to the current page.
如果该字段为null,那么还可以在FacesContext中添加一条消息,指示相关组件返回到当前页。
应用推荐