Package cdc.issues.answers
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdc.issues.answers.IssueAnswer
IssueAnswer.Builder -
Constructor Summary
ConstructorsConstructorDescriptionIssueAnswerImpl(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 aIssueAnswerImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionassignee()Returns the value of theassigneerecord component.author()Returns the value of theauthorrecord component.comments()Returns the value of thecommentsrecord component.Returns the value of thecreationDaterecord component.final booleanIndicates whether some other object is "equal to" this one.getMetas()final inthashCode()Returns a hash code value for this object.issueId()Returns the value of theissueIdrecord component.labels()Returns the value of thelabelsrecord component.metas()Returns the value of themetasrecord component.Returns the value of themodificationDaterecord component.Returns the value of thenewSeverityrecord component.Returns the value of theresolutionrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aIssueAnswerImplrecord class.- Parameters:
issueId- the value for theissueIdrecord componentauthor- the value for theauthorrecord componentcreationDate- the value for thecreationDaterecord componentmodificationDate- the value for themodificationDaterecord componentstatus- the value for thestatusrecord componentresolution- the value for theresolutionrecord componentassignee- the value for theassigneerecord componentnewSeverity- the value for thenewSeverityrecord componentcomments- the value for thecommentsrecord componentmetas- the value for themetasrecord componentlabels- the value for thelabelsrecord component
-
-
Method Details
-
getMetas
-
getLabels
- Specified by:
getLabelsin interfaceLabelsItem- Returns:
- The labels associated to this item.
-
getIssueId
- Specified by:
getIssueIdin interfaceIssueAnswer- Returns:
- The id of associated issues.
Should NOT benull.
-
getAuthor
- Specified by:
getAuthorin interfaceIssueAnswer- Returns:
- The author of this answer.
-
getCreationDate
- Specified by:
getCreationDatein interfaceIssueAnswer- Returns:
- The creation date (as an Instant) of this answer.
-
getModificationDate
- Specified by:
getModificationDatein interfaceIssueAnswer- Returns:
- The last modification date (as an Instant) of this answer.
-
getStatus
- Specified by:
getStatusin interfaceIssueAnswer- Returns:
- The status of this answer.
Should NOT benull.
-
getResolution
- Specified by:
getResolutionin interfaceIssueAnswer- Returns:
- The resolution of this answer.
May be
null.
-
getAssignee
- Specified by:
getAssigneein interfaceIssueAnswer- Returns:
- The assignee of this answer.
-
getNewSeverity
- Specified by:
getNewSeverityin interfaceIssueAnswer- Returns:
- The new severity of this answer.
May benullif severity was not changed.
-
getComments
- Specified by:
getCommentsin interfaceIssueAnswer- Returns:
- The comments of this answer.
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
issueId
Returns the value of theissueIdrecord component.- Returns:
- the value of the
issueIdrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
creationDate
Returns the value of thecreationDaterecord component.- Returns:
- the value of the
creationDaterecord component
-
modificationDate
Returns the value of themodificationDaterecord component.- Returns:
- the value of the
modificationDaterecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
resolution
Returns the value of theresolutionrecord component.- Returns:
- the value of the
resolutionrecord component
-
assignee
Returns the value of theassigneerecord component.- Returns:
- the value of the
assigneerecord component
-
newSeverity
Returns the value of thenewSeverityrecord component.- Returns:
- the value of the
newSeverityrecord component
-
comments
Returns the value of thecommentsrecord component.- Returns:
- the value of the
commentsrecord component
-
metas
Returns the value of themetasrecord component.- Returns:
- the value of the
metasrecord component
-
labels
Returns the value of thelabelsrecord component.- Returns:
- the value of the
labelsrecord component
-