本文整理汇总了Java中org.gradle.util.CollectionUtils.addAll方法的典型用法代码示例。如果您正苦于以下问题:Java CollectionUtils.addAll方法的具体用法?Java CollectionUtils.addAll怎么用?Java CollectionUtils.addAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.gradle.util.CollectionUtils
的用法示例。
在下文中一共展示了CollectionUtils.addAll方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: lib
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
@Override
public void lib(Object library) {
if (library instanceof Iterable<?>) {
Iterable<?> iterable = (Iterable) library;
CollectionUtils.addAll(libs, iterable);
} else {
libs.add(library);
}
}
示例2: withCommandLineGradleOpts
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
@Override
public GradleExecuter withCommandLineGradleOpts(Iterable<String> jvmOpts) {
CollectionUtils.addAll(commandLineJvmOpts, jvmOpts);
return this;
}
示例3: withBuildJvmOpts
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
@Override
public AbstractGradleExecuter withBuildJvmOpts(String... jvmOpts) {
CollectionUtils.addAll(buildJvmOpts, jvmOpts);
return this;
}
示例4: visitFiles
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
@Override
public void visitFiles(@Nullable ComponentIdentifier componentIdentifier, Iterable<File> files) {
CollectionUtils.addAll(this.files, files);
}
示例5: forComponents
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
public ArtifactResolutionQuery forComponents(Iterable<? extends ComponentIdentifier> componentIds) {
CollectionUtils.addAll(this.componentIds, componentIds);
return this;
}
示例6: setIvyPatterns
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
protected void setIvyPatterns(Iterable<? extends ResourcePattern> patterns) {
id = null;
ivyPatterns.clear();
CollectionUtils.addAll(ivyPatterns, patterns);
}
示例7: setArtifactPatterns
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
protected void setArtifactPatterns(List<ResourcePattern> patterns) {
id = null;
artifactPatterns.clear();
CollectionUtils.addAll(artifactPatterns, patterns);
}
示例8: ActionBroadcast
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
public ActionBroadcast(Iterable<Action<? super T>> actions) {
CollectionUtils.addAll(this.actions, actions);
}
示例9: excludeSpecs
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
public PatternSet excludeSpecs(Iterable<Spec<FileTreeElement>> excludes) {
CollectionUtils.addAll(this.excludeSpecs, excludes);
return this;
}