Record Class DependencyTreeParser.ResolvedDependency
java.lang.Object
java.lang.Record
network.ike.workspace.DependencyTreeParser.ResolvedDependency
- Record Components:
groupId- the Maven groupIdartifactId- the Maven artifactIdtype- the artifact type (jar, pom, etc.)version- the resolved versionscope- the dependency scope (compile, runtime, test, etc.), or empty string for the root artifactdepth- nesting depth (0 = root project)
- Enclosing class:
DependencyTreeParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactIdrecord component.intdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ResolvedDependency
public ResolvedDependency(String groupId, String artifactId, String type, String version, String scope, int depth) Creates an instance of aResolvedDependencyrecord class.- Parameters:
groupId- the value for thegroupIdrecord componentartifactId- the value for theartifactIdrecord componenttype- the value for thetyperecord componentversion- the value for theversionrecord componentscope- the value for thescoperecord componentdepth- the value for thedepthrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
groupId
-
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
type
-
version
-
scope
-
depth
-