Record Class TaskComment
java.lang.Object
java.lang.Record
com.xebialabs.xlrelease.osgi.api.tasks.TaskComment
- Record Components:
text- the comment body, in markdown- the name the comment is attributed to; nevernull, but not guaranteed to be a real userdate- when the comment was made
One comment on a task, as read back by
TaskExecutionContext.getComments() - markdown text,
the name it is attributed to (a user's login name, or a system marker such as "TASK
COMMENT" for script/automated output; never null, but not guaranteed to be a real user),
and when it was made.
Deliberately independent of the host's own Comment configuration item: this record
crosses the bundle boundary, so it carries only plain, bundle-visible types.
-
Constructor Summary
ConstructorsConstructorDescriptionTaskComment(String text, String author, Instant date) Creates an instance of aTaskCommentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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). -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-