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 Details

    • ThreadedComment

      public ThreadedComment(String id, String author, String text, String timestamp, boolean resolved, List<ThreadedComment> replies)
      Creates an instance of a ThreadedComment record class.
      Parameters:
      id - the value for the id record component
      author - the value for the author record component
      text - the value for the text record component
      timestamp - the value for the timestamp record component
      resolved - the value for the resolved record component
      replies - the value for the replies 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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 String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • author

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

      public String text()
      Returns the value of the text record component.
      Returns:
      the value of the text record component
    • timestamp

      public String timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • resolved

      public boolean resolved()
      Returns the value of the resolved record component.
      Returns:
      the value of the resolved record component
    • replies

      public List<ThreadedComment> replies()
      Returns the value of the replies record component.
      Returns:
      the value of the replies record component