Record Class PluginUpgrade
java.lang.Object
java.lang.Record
org.apache.maven.cling.invoker.mvnup.goals.PluginUpgrade
- Record Components:
groupId
- the Maven groupId of the pluginartifactId
- the Maven artifactId of the pluginminVersion
- the minimum version required for Maven 4 compatibilityreason
- the reason why this plugin needs to be upgraded
-
Constructor Summary
ConstructorsConstructorDescriptionPluginUpgrade
(String groupId, String artifactId, String minVersion, String reason) Creates an instance of aPluginUpgrade
record class. -
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.Returns the value of theminVersion
record component.reason()
Returns the value of thereason
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PluginUpgrade
Creates an instance of aPluginUpgrade
record class.- Parameters:
groupId
- the value for thegroupId
record componentartifactId
- the value for theartifactId
record componentminVersion
- the value for theminVersion
record componentreason
- the value for thereason
record 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. 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
-
minVersion
Returns the value of theminVersion
record component.- Returns:
- the value of the
minVersion
record component
-
reason
-