public interface PullRequestParticipant extends Comparable<PullRequestParticipant>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PullRequestParticipant other)
Sorts participants first by status, then by name
|
String |
getLastReviewedCommit() |
PullRequest |
getPullRequest() |
PullRequestRole |
getRole() |
PullRequestParticipantStatus |
getStatus() |
ApplicationUser |
getUser() |
boolean |
isApproved() |
@Nullable @OptionalString(minimumSize=40, size=40) String getLastReviewedCommit()
null
if the
participant has not yet reviewed the pull request@Nonnull PullRequest getPullRequest()
@Nonnull PullRequestRole getRole()
@Nonnull PullRequestParticipantStatus getStatus()
@Nonnull ApplicationUser getUser()
boolean isApproved()
true
if the status of this participant is APPROVED
false
otherwiseint compareTo(@Nonnull PullRequestParticipant other)
compareTo
in interface Comparable<PullRequestParticipant>
other
- the participant to compare to0
if other
has same status and same name< 0
if other
has approved the pull request and this
has not, or if other
has
same status but comes first when alphabetically ordered by name> 0
otherwiseNullPointerException
- if other
is null
Copyright © 2019 Atlassian. All rights reserved.