Record Class CommitDto

java.lang.Object
java.lang.Record
edu.ucsb.cs156.frontiers.models.CommitDto
All Implemented Interfaces:
Serializable

public record CommitDto(Long id, String branchIdOrg, String branchIdRepo, String branchIdBranchName, String sha, String url, String message, Instant commitTime, String committerName, String committerEmail, String committerLogin, String authorName, String authorEmail, String authorLogin) extends Record implements Serializable
DTO for Commit
See Also:
  • Constructor Details

    • CommitDto

      public CommitDto(Long id, String branchIdOrg, String branchIdRepo, String branchIdBranchName, String sha, String url, String message, Instant commitTime, String committerName, String committerEmail, String committerLogin, String authorName, String authorEmail, String authorLogin)
      Creates an instance of a CommitDto record class.
      Parameters:
      id - the value for the id record component
      branchIdOrg - the value for the branchIdOrg record component
      branchIdRepo - the value for the branchIdRepo record component
      branchIdBranchName - the value for the branchIdBranchName record component
      sha - the value for the sha record component
      url - the value for the url record component
      message - the value for the message record component
      commitTime - the value for the commitTime record component
      committerName - the value for the committerName record component
      committerEmail - the value for the committerEmail record component
      committerLogin - the value for the committerLogin record component
      authorName - the value for the authorName record component
      authorEmail - the value for the authorEmail record component
      authorLogin - the value for the authorLogin 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 Long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • branchIdOrg

      public String branchIdOrg()
      Returns the value of the branchIdOrg record component.
      Returns:
      the value of the branchIdOrg record component
    • branchIdRepo

      public String branchIdRepo()
      Returns the value of the branchIdRepo record component.
      Returns:
      the value of the branchIdRepo record component
    • branchIdBranchName

      public String branchIdBranchName()
      Returns the value of the branchIdBranchName record component.
      Returns:
      the value of the branchIdBranchName record component
    • sha

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

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

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • commitTime

      public Instant commitTime()
      Returns the value of the commitTime record component.
      Returns:
      the value of the commitTime record component
    • committerName

      public String committerName()
      Returns the value of the committerName record component.
      Returns:
      the value of the committerName record component
    • committerEmail

      public String committerEmail()
      Returns the value of the committerEmail record component.
      Returns:
      the value of the committerEmail record component
    • committerLogin

      public String committerLogin()
      Returns the value of the committerLogin record component.
      Returns:
      the value of the committerLogin record component
    • authorName

      public String authorName()
      Returns the value of the authorName record component.
      Returns:
      the value of the authorName record component
    • authorEmail

      public String authorEmail()
      Returns the value of the authorEmail record component.
      Returns:
      the value of the authorEmail record component
    • authorLogin

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