Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/227.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android “什么是”呢;“全部”;迭代器?_Android_Groovy - Fatal编程技术网

Android “什么是”呢;“全部”;迭代器?

Android “什么是”呢;“全部”;迭代器?,android,groovy,Android,Groovy,在gradle的Android插件中,我想使用这个方法,它建议使用alliterator: /** * Returns the list of Application variants. Since the collections is built after evaluation, * it should be used with Groovy's <code>all</code> iterator to process future items. * */

在gradle的Android插件中,我想使用这个方法,它建议使用
all
iterator:

/**
 * Returns the list of Application variants. Since the collections is built after evaluation,
 * it should be used with Groovy's <code>all</code> iterator to process future items.
 *
 */
 public DefaultDomainObjectSet<ApplicationVariant> getApplicationVariants() {
     return applicationVariantList
 }
然而,我没有在Groovy官方文档中找到关于这个迭代器的任何信息。
在哪里可以找到有关此迭代器的更多信息?它与每个迭代器有何不同?

最后我找到了所有迭代器的来源。这是一个来自GradleAPI的方法:

一个更新的链接:我怀疑它可能在未来的版本中再次改变。似乎
all
根本不是迭代器,而是将来添加对象时关联要应用的
操作的一种方法。