public abstract class DependencyGraphHelper
extends java.lang.Object
构造器和说明 |
---|
DependencyGraphHelper() |
限定符和类型 | 方法和说明 |
---|---|
static <T extends Dependent> |
addDependency(DependencyGraph<T> graph,
java.util.List<T> nodes,
T newNode)
添加新节点到图中,如果依赖了不存在的节点,则不添加并返回false,成功返回true
|
static <T extends Dependent> |
parse(java.util.List<T> list)
解析依赖关系
|
static <T extends Dependent> |
upParse(java.util.List<T> list,
java.util.List<java.lang.String> concernedList)
构造list中关心的节点即其依赖节点的图
向上解析
|
public static <T extends Dependent> DependencyGraph<T> upParse(java.util.List<T> list, java.util.List<java.lang.String> concernedList) throws DependencyNotFoundException
public static <T extends Dependent> DependencyGraph<T> parse(java.util.List<T> list) throws DependencyNotFoundException
public static <T extends Dependent> boolean addDependency(DependencyGraph<T> graph, java.util.List<T> nodes, T newNode)