- All Implemented Interfaces:
Default implementation of
Internal helper class for collector implementations.
Method SummaryModifier and TypeMethodDescription
static intSearches for a node associated with the given artifact.Gets 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.
getPrecedingDependenciesDescription copied from interface:
DependencyCycleGets the dependencies that lead to the first dependency on the cycle, starting from the root of the dependency graph.
getCyclicDependenciesDescription copied from interface:
DependencyCycleGets 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.
findSearches for a node associated with the given artifact. A version of the artifact is not considered during the search.
nodes- a list representing single path in the dependency graph. First element is the root.
artifact- to find among the parent nodes.
- the index of the node furthest from the root and associated with the given artifact, or -1 if there is no such node.