Package com.atlassian.bitbucket.comment
Interface Commentable
- All Known Subinterfaces:
CommitDiscussion
,PullRequest
public interface Commentable
Entity that users can comment on.
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(CommentableVisitor<T> visitor) Accepts the providedvisitor
and invokes the appropriatevisit
overload for this commentable type, returning its result.
-
Method Details
-
accept
Accepts the providedvisitor
and invokes the appropriatevisit
overload for this commentable type, returning its result.Note: Nullability for the return value is intentionally not documented one way or another. It is expected that the caller will know the nullability of the visitor implementation they are passing and code accordingly.
- Type Parameters:
T
- type of visitor- Parameters:
visitor
- the visitor to invoke- Returns:
- the result of the invoked
visit
method
-