Record Class GAV
java.lang.Object
java.lang.Record
org.apache.maven.cling.invoker.mvnup.goals.GAV
- Record Components:
groupId- the Maven groupIdartifactId- the Maven artifactIdversion- the Maven version
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactIdrecord 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.booleanmatchesIgnoringVersion(GAV other) Checks if this GAV matches another GAV ignoring the version.toString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
GAV
-
-
Method Details
-
matchesIgnoringVersion
Checks if this GAV matches another GAV ignoring the version.- Parameters:
other- the other GAV to compare- Returns:
- true if groupId and artifactId match
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
groupId
-
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
version
-