Record Class GitSource.CommitMeta

java.lang.Object
java.lang.Record
network.ike.docs.plugin.diff.GitSource.CommitMeta
Record Components:
id - the abbreviated commit id
author - the commit author's name
date - the author date, ISO local-date form
subject - the first line of the commit message
fullMessage - the full commit message
files - repository-relative paths the commit touched
Enclosing class:
GitSource

public static record GitSource.CommitMeta(String id, String author, String date, String subject, String fullMessage, List<String> files) extends Record
Metadata of one commit in a compared range, for change-entity derivation from trailers (ike-issues#652) and stamp endnotes (ike-issues#656).
  • Constructor Details

    • CommitMeta

      public CommitMeta(String id, String author, String date, String subject, String fullMessage, List<String> files)
      Creates an instance of a CommitMeta record class.
      Parameters:
      id - the value for the id record component
      author - the value for the author record component
      date - the value for the date record component
      subject - the value for the subject record component
      fullMessage - the value for the fullMessage record component
      files - the value for the files 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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • author

      public String author()
      Returns the value of the author record component.
      Returns:
      the value of the author record component
    • date

      public String date()
      Returns the value of the date record component.
      Returns:
      the value of the date record component
    • subject

      public String subject()
      Returns the value of the subject record component.
      Returns:
      the value of the subject record component
    • fullMessage

      public String fullMessage()
      Returns the value of the fullMessage record component.
      Returns:
      the value of the fullMessage record component
    • files

      public List<String> files()
      Returns the value of the files record component.
      Returns:
      the value of the files record component