package se.bjurr.violations.comments.lib.model;

import java.util.List;
import se.bjurr.violations.lib.util.Optional;

public interface CommentsProvider {
  void createCommentWithAllSingleFileComments(String string);

  void createSingleFileComment(ChangedFile file, Integer line, String comment);

  List<Comment> getComments();

  List<ChangedFile> getFiles();

  void removeComments(List<Comment> comments);

  boolean shouldComment(ChangedFile changedFile, Integer line);

  boolean shouldCreateCommentWithAllSingleFileComments();

  boolean shouldCreateSingleFileComment();

  boolean shouldKeepOldComments();

  Optional<String> findCommentTemplate();
}

@@ -152,70 +152,448 @@
 r %7B%0A
-  void createCommentWithAllSingleFileComments(String string);%0A
+%0A  /**%0A   * Create a single comment containing all file comments and violations.%0A   *%0A   * @param string The combined comments.%0A   */%0A  void createCommentWithAllSingleFileComments(String string);%0A%0A  /**%0A   * Create a discussion on the diff on the line the violation occurred.%0A   *%0A   * @param file The file in which the violation occurred.%0A   * @param line The line number after the patch.%0A   * @param comment The text of the comment.%0A   */
 %0A  v

Add javadoc.