public interface

CommentThread

com.atlassian.bitbucket.comment.CommentThread

Class Overview

Represents a conversation started on a commentable. The comment thread knows about the commentable commentable, all the comments in the conversation (accessible through the root comment) and (optionally) where the thread is anchored on a diff.

Summary

Public Methods
@Nonnull Optional<CommentThreadDiffAnchor> getAnchor()
@Nonnull Commentable getCommentable()
@Nonnull Date getCreatedDate()
long getId()
@Nonnull Comment getRootComment()
@Nonnull Date getUpdatedDate()
boolean isAnchored()

Public Methods

@Nonnull public Optional<CommentThreadDiffAnchor> getAnchor ()

Returns
  • the anchor for comment threads created on a diff.

@Nonnull public Commentable getCommentable ()

Returns
  • the commentable on which this comment thread is anchored.

@Nonnull public Date getCreatedDate ()

Returns
  • the date on which this comment thread was created.

public long getId ()

Returns
  • the comment thread's ID.

@Nonnull public Comment getRootComment ()

Returns
  • the root comment in the thread.

@Nonnull public Date getUpdatedDate ()

Returns
  • the date on which the latest comment was added to this thread.

public boolean isAnchored ()

Returns
  • true if the anchor is present. false otherwise