Package com.google.gerrit.entities
Class HumanComment
java.lang.Object
com.google.gerrit.entities.Comment
com.google.gerrit.entities.HumanComment
This class represents inline human 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).
Consider updating getApproximateSize()
when adding/changing fields.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.entities.Comment
Comment.Identity, Comment.Key, Comment.Range, Comment.Status
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHumanComment
(Comment.Key key, Account.Id author, Instant writtenOn, short side, String message, String serverId, boolean unresolved) HumanComment
(HumanComment comment) -
Method Summary
Methods inherited from class com.google.gerrit.entities.Comment
getCommentFieldApproximateSize, getCommitId, getRealAuthor, setCommitId, setLineNbrAndRange, setRange, setRealAuthor, setWrittenOn, toStringHelper
-
Field Details
-
unresolved
public boolean unresolved
-
-
Constructor Details
-
HumanComment
public HumanComment(Comment.Key key, Account.Id author, Instant writtenOn, short side, String message, String serverId, boolean unresolved) -
HumanComment
-
-
Method Details