Package com.atlassian.bitbucket.comment
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 TypeMethodDescriptionvoidsetProperty(com.atlassian.bitbucket.comment.Comment comment, String key, Object value) Adds a property to thecomment.Methods inherited from interface com.atlassian.bitbucket.comment.Commentable
acceptMethods 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 thecomment. Any existing property stored underkeywill be replaced.- Parameters:
comment- the comment that will receive the new propertykey- property keyvalue- property value
-