Record Class IssueAnswerImpl

java.lang.Object
java.lang.Record
cdc.issues.answers.IssueAnswerImpl
All Implemented Interfaces:
IssueAnswer, LabelsItem, MetasItem

record IssueAnswerImpl(IssueId issueId, String author, Instant creationDate, Instant modificationDate, IssueStatus status, IssueResolution resolution, String assignee, IssueSeverity newSeverity, List<IssueComment> comments, Metas metas, Labels labels) extends Record implements IssueAnswer
  • Constructor Details

    • IssueAnswerImpl

      IssueAnswerImpl(IssueId issueId, String author, Instant creationDate, Instant modificationDate, IssueStatus status, IssueResolution resolution, String assignee, IssueSeverity newSeverity, List<IssueComment> comments, Metas metas, Labels labels)
      Creates an instance of a IssueAnswerImpl record class.
      Parameters:
      issueId - the value for the issueId record component
      author - the value for the author record component
      creationDate - the value for the creationDate record component
      modificationDate - the value for the modificationDate record component
      status - the value for the status record component
      resolution - the value for the resolution record component
      assignee - the value for the assignee record component
      newSeverity - the value for the newSeverity record component
      comments - the value for the comments record component
      metas - the value for the metas record component
      labels - the value for the labels record component
  • Method Details

    • getMetas

      public Metas getMetas()
      Specified by:
      getMetas in interface MetasItem
      Returns:
      The metas associated to this item.
    • getLabels

      public Labels getLabels()
      Specified by:
      getLabels in interface LabelsItem
      Returns:
      The labels associated to this item.
    • getIssueId

      public IssueId getIssueId()
      Specified by:
      getIssueId in interface IssueAnswer
      Returns:
      The id of associated issues.
      Should NOT be null.
    • getAuthor

      public String getAuthor()
      Specified by:
      getAuthor in interface IssueAnswer
      Returns:
      The author of this answer.
    • getCreationDate

      public Instant getCreationDate()
      Specified by:
      getCreationDate in interface IssueAnswer
      Returns:
      The creation date (as an Instant) of this answer.
    • getModificationDate

      public Instant getModificationDate()
      Specified by:
      getModificationDate in interface IssueAnswer
      Returns:
      The last modification date (as an Instant) of this answer.
    • getStatus

      public IssueStatus getStatus()
      Specified by:
      getStatus in interface IssueAnswer
      Returns:
      The status of this answer.
      Should NOT be null.
    • getResolution

      public IssueResolution getResolution()
      Specified by:
      getResolution in interface IssueAnswer
      Returns:
      The resolution of this answer. May be null.
    • getAssignee

      public String getAssignee()
      Specified by:
      getAssignee in interface IssueAnswer
      Returns:
      The assignee of this answer.
    • getNewSeverity

      public IssueSeverity getNewSeverity()
      Specified by:
      getNewSeverity in interface IssueAnswer
      Returns:
      The new severity of this answer.
      May be null if severity was not changed.
    • getComments

      public List<IssueComment> getComments()
      Specified by:
      getComments in interface IssueAnswer
      Returns:
      The comments of this answer.
    • 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.
    • issueId

      public IssueId issueId()
      Returns the value of the issueId record component.
      Returns:
      the value of the issueId record component
    • author

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

      public Instant creationDate()
      Returns the value of the creationDate record component.
      Returns:
      the value of the creationDate record component
    • modificationDate

      public Instant modificationDate()
      Returns the value of the modificationDate record component.
      Returns:
      the value of the modificationDate record component
    • status

      public IssueStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • resolution

      public IssueResolution resolution()
      Returns the value of the resolution record component.
      Returns:
      the value of the resolution record component
    • assignee

      public String assignee()
      Returns the value of the assignee record component.
      Returns:
      the value of the assignee record component
    • newSeverity

      public IssueSeverity newSeverity()
      Returns the value of the newSeverity record component.
      Returns:
      the value of the newSeverity record component
    • comments

      public List<IssueComment> comments()
      Returns the value of the comments record component.
      Returns:
      the value of the comments record component
    • metas

      public Metas metas()
      Returns the value of the metas record component.
      Returns:
      the value of the metas record component
    • labels

      public Labels labels()
      Returns the value of the labels record component.
      Returns:
      the value of the labels record component