Package com.google.gerrit.entities
Class HumanComment
- java.lang.Object
-
- com.google.gerrit.entities.Comment
-
- com.google.gerrit.entities.HumanComment
-
public class HumanComment extends Comment
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 Modifier and Type Field Description boolean
unresolved
-
Constructor Summary
Constructors Constructor Description HumanComment(Comment.Key key, Account.Id author, Instant writtenOn, short side, String message, String serverId, boolean unresolved)
HumanComment(HumanComment comment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object otherObject)
int
getApproximateSize()
int
hashCode()
String
toString()
-
Methods inherited from class com.google.gerrit.entities.Comment
getCommentFieldApproximateSize, getCommitId, getRealAuthor, setCommitId, setLineNbrAndRange, setRange, setRealAuthor, setWrittenOn, toStringHelper
-
-
-
-
Constructor Detail
-
HumanComment
public HumanComment(Comment.Key key, Account.Id author, Instant writtenOn, short side, String message, String serverId, boolean unresolved)
-
HumanComment
public HumanComment(HumanComment comment)
-
-
Method Detail
-
getApproximateSize
public int getApproximateSize()
- Specified by:
getApproximateSize
in classComment
-
-