什么是 "all" 迭代器?
What is "all" iterator?
在 gradle 的 Android 插件中,我想使用这个建议使用 all
迭代器的方法:
/**
* 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 官方文档中没有找到关于这个迭代器的任何信息。
在哪里可以找到有关此迭代器的更多信息?它与 each
迭代器有何不同?
在 gradle 的 Android 插件中,我想使用这个建议使用 all
迭代器的方法:
/**
* 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 官方文档中没有找到关于这个迭代器的任何信息。
在哪里可以找到有关此迭代器的更多信息?它与 each
迭代器有何不同?