本文整理汇总了Java中org.gradle.util.CollectionUtils.toList方法的典型用法代码示例。如果您正苦于以下问题:Java CollectionUtils.toList方法的具体用法?Java CollectionUtils.toList怎么用?Java CollectionUtils.toList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.gradle.util.CollectionUtils
的用法示例。
在下文中一共展示了CollectionUtils.toList方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: transform
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
public ClassLoaderDetails transform(ClassLoader classLoader) {
ClassLoaderSpecVisitor visitor = new ClassLoaderSpecVisitor(classLoader);
visitor.visit(classLoader);
if (visitor.spec == null) {
if (visitor.classPath == null) {
visitor.spec = SystemClassLoaderSpec.INSTANCE;
} else {
visitor.spec = new VisitableURLClassLoader.Spec(CollectionUtils.toList(visitor.classPath));
}
}
UUID uuid = UUID.randomUUID();
ClassLoaderDetails details = new ClassLoaderDetails(uuid, visitor.spec);
for (ClassLoader parent : visitor.parents) {
details.parents.add(getDetails(parent));
}
return details;
}
示例2: getConfigurations
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
public List<VisualStudioProjectConfiguration> getConfigurations() {
return CollectionUtils.toList(configurations.values());
}
示例3: getAll
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
public List<ProjectInitDescriptor> getAll() {
return CollectionUtils.toList(registeredProjectDescriptors.values());
}
示例4: Configuration
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
public Configuration(String name, boolean transitive, boolean visible, Collection<String> extendsFrom) {
this.name = name;
this.transitive = transitive;
this.visible = visible;
this.extendsFrom = CollectionUtils.toList(extendsFrom);
}
示例5: rationalizeInput
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
protected static @Nullable <T> List<T> rationalizeInput(@Nullable Iterable<? extends T> arguments) {
return arguments != null && arguments.iterator().hasNext() ? CollectionUtils.toList(arguments) : null;
}
示例6: createProcessor
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
private IncrementalCompileProcessor createProcessor(PersistentStateCache<CompilationState> compileStateCache, SourceIncludesParser sourceIncludesParser, Iterable<File> includes) {
DefaultSourceIncludesResolver dependencyParser = new DefaultSourceIncludesResolver(CollectionUtils.toList(includes));
return new IncrementalCompileProcessor(compileStateCache, dependencyParser, sourceIncludesParser, hasher);
}
示例7: addAllReversed
import org.gradle.util.CollectionUtils; //导入方法依赖的package包/类
private <T> void addAllReversed(List<T> list, TreeSet<T> set) {
List<T> elements = CollectionUtils.toList(set);
Collections.reverse(elements);
list.addAll(elements);
}