Package no.conta.git

Record Class GitProperties

java.lang.Object
java.lang.Record
no.conta.git.GitProperties

public record GitProperties(String repositoryName, String projectName, String connection, String url, String directory, String commit, String describe, String version) extends Record
  • Constructor Details

    • GitProperties

      public GitProperties(String repositoryName, String projectName, String connection, String url, String directory, String commit, String describe, String version)
      Creates an instance of a GitProperties record class.
      Parameters:
      repositoryName - the value for the repositoryName record component
      projectName - the value for the projectName record component
      connection - the value for the connection record component
      url - the value for the url record component
      directory - the value for the directory record component
      commit - the value for the commit record component
      describe - the value for the describe record component
      version - the value for the version record component
  • Method Details

    • toString

      public final 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.
    • repositoryName

      public String repositoryName()
      Returns the value of the repositoryName record component.
      Returns:
      the value of the repositoryName record component
    • projectName

      public String projectName()
      Returns the value of the projectName record component.
      Returns:
      the value of the projectName record component
    • connection

      public String connection()
      Returns the value of the connection record component.
      Returns:
      the value of the connection record component
    • url

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • directory

      public String directory()
      Returns the value of the directory record component.
      Returns:
      the value of the directory record component
    • commit

      public String commit()
      Returns the value of the commit record component.
      Returns:
      the value of the commit record component
    • describe

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

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