public final class DefaultDependencyCycle extends Object implements DependencyCycle
DependencyCycle
.
Internal helper class for collector implementations.Constructor and Description |
---|
DefaultDependencyCycle(List<DependencyNode> nodes,
int cycleEntry,
Dependency dependency) |
Modifier and Type | Method and Description |
---|---|
static int |
find(List<DependencyNode> nodes,
Artifact artifact)
Searches for a node associated with the given artifact.
|
List<Dependency> |
getCyclicDependencies()
Gets the dependencies that actually form the cycle.
|
List<Dependency> |
getPrecedingDependencies()
Gets the dependencies that lead to the first dependency on the cycle, starting from the root of the dependency
graph.
|
String |
toString() |
public DefaultDependencyCycle(List<DependencyNode> nodes, int cycleEntry, Dependency dependency)
public List<Dependency> getPrecedingDependencies()
DependencyCycle
getPrecedingDependencies
in interface DependencyCycle
null
.public List<Dependency> getCyclicDependencies()
DependencyCycle
getCyclicDependencies
in interface DependencyCycle
null
.public static int find(List<DependencyNode> nodes, Artifact artifact)
nodes
- a list representing single path in the dependency graph. First element is the root.artifact
- to find among the parent nodes.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.