Interface CommentPropertyContext

All Superinterfaces:
com.atlassian.bitbucket.comment.Commentable, Iterable<com.atlassian.bitbucket.comment.Comment>

public interface CommentPropertyContext extends Iterable<com.atlassian.bitbucket.comment.Comment>, com.atlassian.bitbucket.comment.Commentable
Allows iterating and adding properties on comments. This context is guaranteed to not contain duplicate comments.

Clients can also access the entity owning the comments by using Commentable.accept(CommentableVisitor).

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setProperty(com.atlassian.bitbucket.comment.Comment comment, String key, Object value)
    Adds a property to the comment.

    Methods inherited from interface com.atlassian.bitbucket.comment.Commentable

    accept

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • setProperty

      void setProperty(@Nonnull com.atlassian.bitbucket.comment.Comment comment, @Nonnull String key, @Nonnull Object value)
      Adds a property to the comment. Any existing property stored under key will be replaced.
      Parameters:
      comment - the comment that will receive the new property
      key - property key
      value - property value