Exemple #1
0
 public Collection<? extends ReadableCopySpec> getAllSpecs() {
   List<WrapperCopySpec> specs = new ArrayList<WrapperCopySpec>();
   for (ReadableCopySpec child : spec.getAllSpecs()) {
     specs.add(new WrapperCopySpec(root, child));
   }
   return specs;
 }
Exemple #2
0
 public List<ReadableCopySpec> getAllSpecs() {
   List<ReadableCopySpec> result = new ArrayList<ReadableCopySpec>();
   result.add(this);
   for (ReadableCopySpec childSpec : childSpecs) {
     result.addAll(childSpec.getAllSpecs());
   }
   return result;
 }