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
public record PluginUpgrade(String groupId, String artifactId, String minVersion, String reason)
extends Record
Plugin upgrade configuration for Maven 4 compatibility.
This record holds information about plugins that need to be upgraded
to specific minimum versions to work properly with Maven 4.
-
Constructor Summary
ConstructorsConstructorDescriptionPluginUpgrade(String groupId, String artifactId, String minVersion, String reason) Creates an instance of aPluginUpgraderecord class. -
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.Returns the value of theminVersionrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PluginUpgrade
Creates an instance of aPluginUpgraderecord class.- Parameters:
groupId- the value for thegroupIdrecord componentartifactId- the value for theartifactIdrecord componentminVersion- the value for theminVersionrecord componentreason- the value for thereasonrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
minVersion
Returns the value of theminVersionrecord component.- Returns:
- the value of the
minVersionrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-