Package com.vaadin.copilot
Record Class PomFileRewriter.Dependency
java.lang.Object
java.lang.Record
com.vaadin.copilot.PomFileRewriter.Dependency
- Record Components:
fileRewriter- PomFileRewriter where dependency is presentartifactId- ArtifactIdgroupId- GroupIdversion- VersionversionLineNumber- Line number of version node of dependency in file
- Enclosing class:
PomFileRewriter
public static record PomFileRewriter.Dependency(PomFileRewriter fileRewriter, String artifactId, String groupId, String version, int versionLineNumber)
extends Record
Dependency that presents in the pom.xml
-
Constructor Summary
ConstructorsConstructorDescriptionDependency(PomFileRewriter fileRewriter, String artifactId, String groupId, String version, int versionLineNumber) Creates an instance of aDependencyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileRewriterrecord component.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.intReturns the value of theversionLineNumberrecord component.
-
Constructor Details
-
Dependency
public Dependency(PomFileRewriter fileRewriter, String artifactId, String groupId, String version, int versionLineNumber) Creates an instance of aDependencyrecord class.- Parameters:
fileRewriter- the value for thefileRewriterrecord componentartifactId- the value for theartifactIdrecord componentgroupId- the value for thegroupIdrecord componentversion- the value for theversionrecord componentversionLineNumber- the value for theversionLineNumberrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
fileRewriter
Returns the value of thefileRewriterrecord component.- Returns:
- the value of the
fileRewriterrecord component
-
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
versionLineNumber
public int versionLineNumber()Returns the value of theversionLineNumberrecord component.- Returns:
- the value of the
versionLineNumberrecord component
-