Class Artifact

java.lang.Object
org.axonframework.updates.api.Artifact

public class Artifact extends Object
Represents an artifact with its group ID, artifact ID, and version.
Since:
4.12.0
Author:
Mitchell Herrijgers
  • Constructor Details

    • Artifact

      public Artifact(String groupId, String artifactId, String version)
      Constructs a DetectedVulnerability with the given groupId, artifactId, and version.
      Parameters:
      groupId - The group ID of the artifact.
      artifactId - The artifact ID of the artifact.
      version - The version of the artifact.
  • Method Details

    • groupId

      public String groupId()
      Returns the group identifier of this artifact.
      Returns:
      The group identifier of this artifact.
    • shortGroupId

      public String 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.
    • artifactId

      public String artifactId()
      Returns the artifact identifier of this artifact.
      Returns:
      The artifact identifier of this artifact.
    • version

      public String version()
      Returns the version of this artifact.
      Returns:
      The version of this artifact.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object