Package com.atlassian.bitbucket.pull
Enum Class PullRequestParticipantStatus
java.lang.Object
java.lang.Enum<PullRequestParticipantStatus>
com.atlassian.bitbucket.pull.PullRequestParticipantStatus
- All Implemented Interfaces:
Serializable
,Comparable<PullRequestParticipantStatus>
,Constable
Enumerates all the possible statuses a participant can have with regards to a pull request.
- Since:
- 4.2
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that the reviewer has approved the changes in the pull request.Indicates that the participant has finished reviewing the changes in the pull request.Indicates that the participant has not finished reviewing the changes in the pull request. -
Method Summary
Modifier and TypeMethodDescriptionstatic PullRequestParticipantStatus
fromId
(int id) int
getId()
int
static PullRequestParticipantStatus
Returns the enum constant of this class with the specified name.static PullRequestParticipantStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNAPPROVED
Indicates that the participant has not finished reviewing the changes in the pull request. -
NEEDS_WORK
Indicates that the participant has finished reviewing the changes in the pull request. They have provided feedback which needs to be addressed before they can approve. As of Bitbucket 8.10, the frontend refers to this as "Requested changes" but the behaviour of this participant status remains identical to pre-8.10. -
APPROVED
Indicates that the reviewer has approved the changes in the pull request.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromId
-
getId
public int getId() -
getWeight
public int getWeight()- Returns:
- the weight
- Since:
- 4.4
-