/** * Returns a List<VersionedName> for each bundle that makes up this product. * * @param includeFragments Indicates whether or not fragments should be included in the list */ public List<IVersionedId> getBundles(boolean includeFragments) { List<IVersionedId> p = plugins != null ? plugins : CollectionUtils.<IVersionedId>emptyList(); if (!includeFragments) return p; List<IVersionedId> f = fragments != null ? fragments : CollectionUtils.<IVersionedId>emptyList(); int size = p.size() + f.size(); if (size == 0) return CollectionUtils.emptyList(); List<IVersionedId> both = new ArrayList<IVersionedId>(size); both.addAll(p); both.addAll(f); return both; }
public Everything(Class<? extends T> elementClass, Collection<T> collection) { super( RepeatableIterator.<T>create( collection == null ? CollectionUtils.<T>emptyList() : collection)); this.elementClass = elementClass; }
/** Returns a List<VersionedName> of features that constitute this product. */ public List<IVersionedId> getFeatures() { return features != null ? features : CollectionUtils.<IVersionedId>emptyList(); }
/** Returns a list<VersionedName> of fragments that constitute this product. */ public List<IVersionedId> getFragments() { return fragments != null ? fragments : CollectionUtils.<IVersionedId>emptyList(); }
/** * Returns a List<BundleInfo> for each bundle that has custom configuration data in the product * file. * * @return A List<BundleInfo> */ public List<BundleInfo> getBundleInfos() { return bundleInfos != null ? bundleInfos : CollectionUtils.<BundleInfo>emptyList(); }