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