Package org.axonframework.update.api
Record Class ArtifactAvailableUpgrade
java.lang.Object
java.lang.Record
org.axonframework.update.api.ArtifactAvailableUpgrade
- Record Components:
groupId- The group ID of the library.artifactId- The artifact ID of the library.latestVersion- The latest version of the library available for upgrade.
@Internal
public record ArtifactAvailableUpgrade(@Nonnull String groupId, @Nonnull String artifactId, @Nonnull String latestVersion)
extends Record
Represents an upgrade suggestion for a specific artifact version by the AxonIQ UpdateChecker API.
- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
-
Constructor Summary
ConstructorsConstructorDescriptionArtifactAvailableUpgrade(String groupId, String artifactId, String latestVersion) Creates an instance of aArtifactAvailableUpgraderecord 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 thelatestVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ArtifactAvailableUpgrade
public ArtifactAvailableUpgrade(@Nonnull String groupId, @Nonnull String artifactId, @Nonnull String latestVersion) Creates an instance of aArtifactAvailableUpgraderecord class.- Parameters:
groupId- the value for thegroupIdrecord componentartifactId- the value for theartifactIdrecord componentlatestVersion- the value for thelatestVersionrecord 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
-
latestVersion
Returns the value of thelatestVersionrecord component.- Returns:
- the value of the
latestVersionrecord component
-