Interface NewCommentDeduplicator

All Known Implementing Classes:
SubmissionTokenCommentDeduplicator

public interface NewCommentDeduplicator
Defines operations for deduplicating comments.
Since:
5.6
  • Method Summary

    Modifier and Type
    Method
    Description
    Given a collection of existing comments, determine which one, if any, is a duplicate of the new comment submission.
    void
    Called when a new comment has been saved
  • Method Details

    • getDuplicateComment

      Optional<Comment> getDuplicateComment(Iterable<Comment> existingComments)
      Given a collection of existing comments, determine which one, if any, is a duplicate of the new comment submission.
      Since:
      7.0.1
    • newCommentSaved

      void newCommentSaved(Comment newComment)
      Called when a new comment has been saved