Record Class ImageName

java.lang.Object
java.lang.Record
io.quarkus.deployment.dev.devservices.ImageName

public record ImageName(String fullName, String registry, String repository, ImageName.Version version) extends Record
  • Constructor Details

    • ImageName

      public ImageName(String fullName, String registry, String repository, ImageName.Version version)
      Creates an instance of a ImageName record class.
      Parameters:
      fullName - the value for the fullName record component
      registry - the value for the registry record component
      repository - the value for the repository record component
      version - the value for the version record component
  • Method Details

    • parse

      public static ImageName parse(String fullName)
    • getUnversionedPart

      public String getUnversionedPart()
      Returns:
      the unversioned (non 'tag') part of this name
    • getVersionPart

      public String getVersionPart()
      Returns:
      the versioned part of this name (tag or sha256)
    • withLibraryPrefix

      public ImageName withLibraryPrefix()
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • fullName

      public String fullName()
      Returns the value of the fullName record component.
      Returns:
      the value of the fullName record component
    • registry

      public String registry()
      Returns the value of the registry record component.
      Returns:
      the value of the registry record component
    • repository

      public String repository()
      Returns the value of the repository record component.
      Returns:
      the value of the repository record component
    • version

      public ImageName.Version version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component