Class Comment

  • Direct Known Subclasses:
    RobotComment

    public class Comment
    extends Object
    This class represents inline comments in NoteDb. This means it determines the JSON format for inline comments in the revision notes that NoteDb uses to persist inline comments.

    Changing fields in this class changes the storage format of inline comments in NoteDb and may require a corresponding data migration (adding new optional fields is generally okay).

    • Field Detail

      • lineNbr

        public int lineNbr
        The line number (1-based) to which the comment refers, or 0 for a file comment.
      • side

        public short side
      • message

        public String message
      • parentUuid

        public String parentUuid
      • serverId

        public String serverId
      • unresolved

        public boolean unresolved
      • legacyFormat

        public transient boolean legacyFormat
        Whether the comment was parsed from a JSON representation (false) or the legacy custom notes format (true).
    • Method Detail

      • getCommitId

        public org.eclipse.jgit.lib.ObjectId getCommitId()
      • setCommitId

        public void setCommitId​(org.eclipse.jgit.lib.AnyObjectId commitId)
      • setRealAuthor

        public void setRealAuthor​(Account.Id id)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toStringHelper

        protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()