Class CommentJson.HumanCommentFormatter
java.lang.Object
com.google.gerrit.server.restapi.change.CommentJson.HumanCommentFormatter
- Enclosing class:
- CommentJson
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCommentContext
(List<CommentInfo> allComments) protected CommentContextKey
protected void
fillCommentInfo
(Comment c, CommentInfo r, AccountLoader loader) format
(HumanComment comment) format
(Iterable<HumanComment> comments) com.google.common.collect.ImmutableList<CommentInfo>
formatAsList
(Iterable<HumanComment> comments) protected List<ContextLineInfo>
toContextLineInfoList
(CommentContext commentContext) protected CommentInfo
toInfo
(HumanComment c, AccountLoader loader) protected Comment.Range
toRange
(Comment.Range commentRange)
-
Method Details
-
toInfo
-
format
- Throws:
PermissionBackendException
-
format
public Map<String,List<CommentInfo>> format(Iterable<HumanComment> comments) throws PermissionBackendException - Throws:
PermissionBackendException
-
formatAsList
public com.google.common.collect.ImmutableList<CommentInfo> formatAsList(Iterable<HumanComment> comments) throws PermissionBackendException - Throws:
PermissionBackendException
-
addCommentContext
-
toContextLineInfoList
-
createCommentContextKey
-
fillCommentInfo
-
toRange
-