public class DependencyTree<T> extends Object
| Constructor and Description |
|---|
DependencyTree() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T parent)
Direct dep without any transient dependencies
|
void |
add(T parent,
T child)
A transient dependencies linked ot a parent (origin)
|
Collection<T> |
getDirectDeps() |
Collection<T> |
getTransientDeps(T parent) |
boolean |
isDirectDep(T parent)
Is the given parent identified as a direct dependency in this tree?
|
public void add(T parent, T child)
parent - public void add(T parent)
parent - public Collection<T> getDirectDeps()
public boolean isDirectDep(T parent)
parent - the dependency to look up in this tree.public Collection<T> getTransientDeps(T parent)
Copyright © 2019 JBoss by Red Hat. All rights reserved.