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() |
List<Dependency> |
getPrecedingDependencies() |
String |
toString() |
public DefaultDependencyCycle(List<DependencyNode> nodes, int cycleEntry, Dependency dependency)
public List<Dependency> getPrecedingDependencies()
getPrecedingDependencies in interface DependencyCyclepublic List<Dependency> getCyclicDependencies()
getCyclicDependencies in interface DependencyCyclepublic 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.