Exemple #1
0
 /** 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;
 }
Exemple #2
0
 public PatternSet excludeSpecs(Iterable<Spec<FileTreeElement>> excludes) {
   CollectionUtils.addAll(this.excludeSpecs, excludes);
   return this;
 }