Package org.axonframework.update.api
Record Class Artifact
java.lang.Object
java.lang.Record
org.axonframework.update.api.Artifact
- Record Components:
groupId- The group ID of the artifact.artifactId- The artifact ID of the artifact.version- The version of the artifact.
@Internal
public record Artifact(@Nonnull String groupId, @Nonnull String artifactId, @Nonnull String version)
extends Record
Represents an artifact with its group ID, artifact ID, and version.
- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
-
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.Returns a short version of the group ID, to save bytes over the wire.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Artifact
Creates an instance of aArtifactrecord class.- Parameters:
groupId- the value for thegroupIdrecord componentartifactId- the value for theartifactIdrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
shortGroupId
Returns a short version of the group ID, to save bytes over the wire.- Returns:
- The short version of the group ID, or the original if it can't be shortened.
-
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
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-