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 theartifactId
record component.final boolean
Indicates whether some other object is "equal to" this one.groupId()
Returns the value of thegroupId
record component.final int
hashCode()
Returns a hash code value for this object.boolean
matchesIgnoringVersion
(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 theversion
record 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 theartifactId
record component.- Returns:
- the value of the
artifactId
record component
-
version
-