Android “什么是”呢;“全部”;迭代器?
在gradle的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. * */
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
根本不是迭代器,而是将来添加对象时关联要应用的操作的一种方法。