/** * Calculates and returns a dependency-ordered (as in getFeatureResources) list of features * included directly or transitively from the specified list of needed features. * This API ignores any unknown features among the needed list. * @param needed List of features for which to obtain an ordered dep list. * @return Ordered list of feature names, as described. */ public List<String> getFeatures(Collection<String> needed) { List<FeatureNode> fullTree = getTransitiveDeps(needed, Lists.<String>newLinkedList()); List<String> allFeatures = Lists.newLinkedList(); for (FeatureNode node : fullTree) { allFeatures.add(node.name); } return allFeatures; }
/** * Calculates and returns a dependency-ordered (as in getFeatureResources) list of features * included directly or transitively from the specified list of needed features. * This API ignores any unknown features among the needed list. * @param needed List of features for which to obtain an ordered dep list. * @return Ordered list of feature names, as described. */ public List<String> getFeatures(Collection<String> needed) { List<FeatureNode> fullTree = getTransitiveDeps(needed, Lists.<String>newLinkedList()); List<String> allFeatures = Lists.newLinkedList(); for (FeatureNode node : fullTree) { allFeatures.add(node.name); } return allFeatures; }
/** * Calculates and returns a dependency-ordered (as in getFeatureResources) list of features * included directly or transitively from the specified list of needed features. * This API ignores any unknown features among the needed list. * @param needed List of features for which to obtain an ordered dep list. * @return Ordered list of feature names, as described. */ public List<String> getFeatures(Collection<String> needed) { List<FeatureNode> fullTree = getTransitiveDeps(needed, Lists.<String>newLinkedList()); List<String> allFeatures = Lists.newLinkedList(); for (FeatureNode node : fullTree) { allFeatures.add(node.name); } return allFeatures; }
featureNodes = getTransitiveDeps(needed, unsupported); } else { featureNodes = getRequestedNodes(needed, unsupported);
featureNodes = getTransitiveDeps(needed, unsupported); } else { featureNodes = getRequestedNodes(needed, unsupported);
getTransitiveDeps(needed, unsupported) : getRequestedNodes(needed, unsupported);