Package org.ossreviewtoolkit.model
Class RootDependencyIndex
-
- All Implemented Interfaces:
public final class RootDependencyIndexA data class representing the index of a root dependency of a scope.
Instances of this class are used to reference the direct dependencies of scopes in the shared dependency graph. These dependencies form the roots of the dependency trees spawned by scopes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRootDependencyIndex.Companion
-
Constructor Summary
Constructors Constructor Description RootDependencyIndex(Integer root, Integer fragment)
-
Method Summary
-
-
Method Detail
-
getRoot
final Integer getRoot()
The index of the root dependency referenced by this object. Each package acting as a dependency is assigned a unique index. Storing an index rather than an identifier reduces the amount of memory consumed by this representation.
-
getFragment
final Integer getFragment()
The index of the fragment of the dependency graph this reference points to. This is used to distinguish between packages that occur multiple times in the dependency graph with different dependencies.
-
-
-
-