Package com.atlassian.bitbucket.pull
Enum Class PullRequestOrder
- All Implemented Interfaces:
Serializable
,Comparable<PullRequestOrder>
,Constable
Specifies the order in which a list of results should be returned - multiple criteria can be applied.
- 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 pull requests will be ordered by closed timestamp in descending order.Indicates pull requests should be shown in an order based onstatus
.Indicates newer pull requests should be shown before older onesIndicates older pull requests should be shown before newer onesIndicates pull requests should be shown in an order based onstatus
. -
Method Summary
Modifier and TypeMethodDescriptionstatic PullRequestOrder
fromString
(String stringValue, PullRequestOrder defaultValue) Coerces a string to aPullRequestOrder
or returns the supplied default value if this is not possible.static PullRequestOrder
static PullRequestOrder
Returns the enum constant of this class with the specified name.static PullRequestOrder[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OLDEST
Indicates older pull requests should be shown before newer ones -
NEWEST
Indicates newer pull requests should be shown before older ones -
DRAFT_STATUS
Indicates pull requests should be shown in an order based onstatus
. For PRs where the draft status is the same,NEWEST
order will be applied.- Since:
- 8.18
-
PARTICIPANT_STATUS
Indicates pull requests should be shown in an order based onstatus
. For PRs where the participant has the same status,NEWEST
order will be applied.- Since:
- 4.4
- See Also:
-
CLOSED_DATE
Indicates pull requests will be ordered by closed timestamp in descending order. Specifically open pull requests will be shown before closed ones, then most recently closed pull requests. Where pull requests are still in the open state newer pull requests are be shown before older ones (i.e. last updated descending).- Since:
- 4.10
-
-
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
-
fromString
public static PullRequestOrder fromString(@Nullable String stringValue, @Nullable PullRequestOrder defaultValue) Coerces a string to aPullRequestOrder
or returns the supplied default value if this is not possible.- Parameters:
stringValue
- the string value of the pull requestdefaultValue
- the default value to return if coercion is not possible- Returns:
- the corresponding
PullRequestOrder
instance
-
getDefaultOrder
- Returns:
NEWEST
-