Package com.google.gerrit.server.comment
Interface CommentContextCache
- 
- All Known Implementing Classes:
- CommentContextCacheImpl
 
 public interface CommentContextCacheCaches the context lines of comments (source file content surrounding and including the lines where the comment was written)
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description CommentContextget(CommentContextKey key)Returns the context lines for a single comment.com.google.common.collect.ImmutableMap<CommentContextKey,CommentContext>getAll(Iterable<CommentContextKey> keys)Returns the context lines for multiple comments - identified by theirkeys.
 
- 
- 
- 
Method Detail- 
getCommentContext get(CommentContextKey key) Returns the context lines for a single comment. Works for published and draft comments.- Parameters:
- key- a key representing a subset of fields for a comment that serves as an identifier.
- Returns:
- a CommentContextobject containing all line numbers and text of the context.
 
 - 
getAllcom.google.common.collect.ImmutableMap<CommentContextKey,CommentContext> getAll(Iterable<CommentContextKey> keys) Returns the context lines for multiple comments - identified by theirkeys. Works for published and draft comments.- Parameters:
- keys- list of keys, where each key represents a single comment through its project, change ID, patchset, path and ID. The keys can belong to different projects and changes.
- Returns:
- Mapof- CommentContextcontaining the context for all comments.
 
 
- 
 
-