public enum PullRequestOrder extends Enum<PullRequestOrder>
PullRequestSearchRequest.getOrders()| Enum Constant and Description |
|---|
CLOSED_DATE
Indicates pull requests will be ordered by closed timestamp in descending order.
|
DRAFT_STATUS
Indicates pull requests should be shown in an order based on
status. |
NEWEST
Indicates newer pull requests should be shown before older ones
|
OLDEST
Indicates older pull requests should be shown before newer ones
|
PARTICIPANT_STATUS
Indicates pull requests should be shown in an order based on
status. |
| Modifier and Type | Method and Description |
|---|---|
static PullRequestOrder |
fromString(String stringValue,
PullRequestOrder defaultValue)
Coerces a string to a
PullRequestOrder or returns the supplied default value if this is not possible. |
static PullRequestOrder |
getDefaultOrder() |
static PullRequestOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PullRequestOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PullRequestOrder OLDEST
public static final PullRequestOrder NEWEST
public static final PullRequestOrder DRAFT_STATUS
status.
For PRs where the draft status is the same, NEWEST order will be applied.
WARNING: This value is experimental and is subject to change between minor versions of Bitbucket. It is
not for consumption and no consideration will be given to nor guarantees made for its compatibility between
releases. Basically, don't use it unless you're a Bitbucket developer.public static final PullRequestOrder PARTICIPANT_STATUS
status.
For PRs where the participant has the same status, NEWEST order will be applied.for more information on restrictionspublic static final PullRequestOrder CLOSED_DATE
public static PullRequestOrder[] values()
for (PullRequestOrder c : PullRequestOrder.values()) System.out.println(c);
public static PullRequestOrder valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static PullRequestOrder fromString(@Nullable String stringValue, @Nullable PullRequestOrder defaultValue)
PullRequestOrder or returns the supplied default value if this is not possible.stringValue - the string value of the pull requestdefaultValue - the default value to return if coercion is not possiblePullRequestOrder instance@Nonnull public static PullRequestOrder getDefaultOrder()
NEWESTCopyright © 2023 Atlassian. All rights reserved.