/** Wraps the given items in a named domain object set. */ public static <T extends Named> NamedDomainObjectSet<T> toNamedDomainObjectSet( Class<T> type, T... items) { DefaultNamedDomainObjectSet<T> domainObjectSet = new DefaultNamedDomainObjectSet<T>(type, new DirectInstantiator()); CollectionUtils.addAll(domainObjectSet, items); return domainObjectSet; }
public PatternSet excludeSpecs(Iterable<Spec<FileTreeElement>> excludes) { CollectionUtils.addAll(this.excludeSpecs, excludes); return this; }