This program begins by first checking a boundary condition -- whether or not the list is empty.
这个程序首先检查边界条件 ——列表是否为空。
If the list is empty, the number of waiting threads is incremented and the current thread is blocked.
如果列表为空,就会增加等待线程的数量,并阻塞当前线程。
If the list is empty after going through all the retrieved locales, the portal default locale is added to the list.
如果遍历了所有检索到的区域设置后,该列表为空,则会将门户缺省区域设置添加到列表中。
The filter() method first checks to see if the list is empty — the critically important exit condition for this method.
filter()方法首先检查列表是否为空,这是该方法的重要退出条件。
Returns a pointer to the last item in the list, or null if the list is empty.
返回指向列表中最后一个项的指针,如果列表为空返回空。
Of course, part of the power of lists comes in recursive processing of the list elements, which simply means pulling the head from the list until the list is empty, then accumulating the results.
当然,列表的强大力量部分来自于递归处理列表元素的能力,这表示可以从列表提取头部,直到列表为空,然后累积结果。
Of course, part of the power of lists comes in recursive processing of the list elements, which simply means pulling the head from the list until the list is empty, then accumulating the results.
当然,列表的强大力量部分来自于递归处理列表元素的能力,这表示可以从列表提取头部,直到列表为空,然后累积结果。
应用推荐