Class DefaultDependencyCycle
java.lang.Object
org.eclipse.aether.internal.impl.collect.DefaultDependencyCycle
- All Implemented Interfaces:
DependencyCycle
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultDependencyCycle
(NodeStack nodes, int cycleEntry, Dependency dependency) -
Method Summary
Modifier and TypeMethodDescriptionGets the dependencies that actually form the cycle.Gets the dependencies that lead to the first dependency on the cycle, starting from the root of the dependency graph.toString()
-
Field Details
-
dependencies
-
cycleEntry
private final int cycleEntry
-
-
Constructor Details
-
DefaultDependencyCycle
DefaultDependencyCycle(NodeStack nodes, int cycleEntry, Dependency dependency)
-
-
Method Details
-
getPrecedingDependencies
Description copied from interface:DependencyCycle
Gets the dependencies that lead to the first dependency on the cycle, starting from the root of the dependency graph.- Specified by:
getPrecedingDependencies
in interfaceDependencyCycle
- Returns:
- The (read-only) sequence of dependencies that precedes the cycle in the graph, potentially empty but
never
null
.
-
getCyclicDependencies
Description copied from interface:DependencyCycle
Gets the dependencies that actually form the cycle. For example, a -> b -> c -> a, i.e. the last dependency in this sequence duplicates the first element and closes the cycle. Hence the length of the cycle is the size of the returned sequence minus 1.- Specified by:
getCyclicDependencies
in interfaceDependencyCycle
- Returns:
- The (read-only) sequence of dependencies that forms the cycle, never
null
.
-
toString
-