com.atlassian.bitbucket.comment.Comment |
Class Overview
A comment on a pull request or commit.
Summary
Fields |
public
static
final
Function<Comment, Long> |
TO_ID |
This field is deprecated.
in 4.0 for removal in 5.0. With Java 8, Comment::getId can be used instead.
|
Fields
public
static
final
Function<Comment, Long>
TO_ID
This field is deprecated.
in 4.0 for removal in 5.0. With Java 8, Comment::getId
can be used instead.
Public Methods
Returns
- the author of the comment
@Nonnull
public
List<Comment>
getComments
()
Returns
- the direct replies to the comment, or an empty list of there are none
@Nonnull
public
Date
getCreatedDate
()
Returns
- the date when the comment was originally created
public
long
getId
()
Returns
- the comment's ID, which is globally unique
@Nullable
public
CommentOperations
getPermittedOperations
()
Returns
- the operations allowed by the current user or
null
if none are permitted
@Nonnull
public
List<Task>
getTasks
()
Returns
- the tasks attached to this comment, or an empty list if there are none
Returns
- the raw text of the comment (limited to 32k)
@Nonnull
public
Date
getUpdatedDate
()
Returns
- the date of the last update
public
int
getVersion
()
Returns
- the current version of the comment