@Deprecated public interface

PullRequestDiffCommentAnchor

implements DiffCommentAnchor
com.atlassian.bitbucket.pull.PullRequestDiffCommentAnchor

This interface is deprecated.
in 4.11 to be removed in 5.0. The Comment API is going through a maintenance cycle. For more details see the API Changelog

Class Overview

A DiffCommentAnchor that is associated with a pull request.

See Also

Summary

[Expand]
Inherited Constants
From interface com.atlassian.bitbucket.comment.DiffCommentAnchor
[Expand]
Inherited Fields
From interface com.atlassian.bitbucket.comment.DiffCommentAnchor
Public Methods
@Nonnull PullRequestCommentAnchorDiffType getDiffType()
@Nonnull PullRequest getPullRequest()
boolean isOrphaned()
An orphaned anchor point is out-of-date in the current state of the pull request.
[Expand]
Inherited Methods
From interface com.atlassian.bitbucket.comment.DiffCommentAnchor

Public Methods

@Nonnull public PullRequestCommentAnchorDiffType getDiffType ()

Returns
  • the type of diff the comment is anchored to

@Nonnull public PullRequest getPullRequest ()

Returns
  • the pull request that this anchor points to.

public boolean isOrphaned ()

An orphaned anchor point is out-of-date in the current state of the pull request. E.g. the anchor points to a path that is no longer in scope of the pull request, because the changes to that file have been reverted on the source branch.

Returns
  • true, if the anchor is orphaned, false otherwise