Package io.keikai.axyra.sheets.content
Record Class ThreadedComment
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.content.ThreadedComment
public record ThreadedComment(String id, String author, String text, String timestamp, boolean resolved, List<ThreadedComment> replies)
extends Record
A threaded comment (Excel 365 conversation) on a cell. A root comment
carries the whole thread:
replies are ordered oldest-first and
always have empty reply lists themselves (threads are one level deep, as
in Excel). resolved is meaningful on the root only.
timestamp is the ISO-8601 dT string from the file
(e.g. 2026-06-17T09:18:41.25), or null.
-
Constructor Summary
ConstructorsConstructorDescriptionThreadedComment(String id, String author, String text, String timestamp, boolean resolved, List<ThreadedComment> replies) Creates an instance of aThreadedCommentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.replies()Returns the value of therepliesrecord component.booleanresolved()Returns the value of theresolvedrecord component.text()Returns the value of thetextrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ThreadedComment
public ThreadedComment(String id, String author, String text, String timestamp, boolean resolved, List<ThreadedComment> replies) Creates an instance of aThreadedCommentrecord class.- Parameters:
id- the value for theidrecord componentauthor- the value for theauthorrecord componenttext- the value for thetextrecord componenttimestamp- the value for thetimestamprecord componentresolved- the value for theresolvedrecord componentreplies- the value for therepliesrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
resolved
public boolean resolved()Returns the value of theresolvedrecord component.- Returns:
- the value of the
resolvedrecord component
-
replies
Returns the value of therepliesrecord component.- Returns:
- the value of the
repliesrecord component
-