Package com.atlassian.bitbucket.pull
Enum Class PullRequestChangeScope
- All Implemented Interfaces:
Serializable
,Comparable<PullRequestChangeScope>
,Constable
Specifies the scope of the changes for a pull request.
- Since:
- 4.10
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNo limit is placed on the scope of the changes for the pull request.Limits the scope of the changes for the pull request to one or more commits betweenPullRequestChangesRequest.getSinceId()
andPullRequestChangesRequest.getUntilId()
.Limits the scope of the changes for the pull request to the changes which are unreviewed for the current user. -
Method Summary
Modifier and TypeMethodDescriptionstatic PullRequestChangeScope
Returns the enum constant of this class with the specified name.static PullRequestChangeScope[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
No limit is placed on the scope of the changes for the pull request. -
RANGE
Limits the scope of the changes for the pull request to one or more commits betweenPullRequestChangesRequest.getSinceId()
andPullRequestChangesRequest.getUntilId()
. If eitherPullRequestChangesRequest.getSinceId()
orPullRequestChangesRequest.getUntilId()
are not included in therequest
, the scope defaults toALL
changes.- Since:
- 5.0
-
UNREVIEWED
Limits the scope of the changes for the pull request to the changes which are unreviewed for the current user. The unreviewed changes are considered to be the changes between thelastReviewedCommit
of the current user and the tip of the source branch. If there are no unreviewed changes, the scope defaults toALL
changes.
-
-
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
-