public class DependencyTree extends Object
Every dependency can only occur exactly once.
Constructor and Description |
---|
DependencyTree() |
Modifier and Type | Method and Description |
---|---|
void |
addDirectDependency(Dependency dependency) |
void |
addTransitiveDependencyTo(Dependency transitiveDependency,
Dependency parent) |
java.util.stream.Stream<Dependency> |
flatten() |
List<Dependency> |
getPathTo(Dependency dependency) |
public void addDirectDependency(Dependency dependency)
public void addTransitiveDependencyTo(Dependency transitiveDependency, Dependency parent)
public List<Dependency> getPathTo(Dependency dependency)
public java.util.stream.Stream<Dependency> flatten()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.