public enum PullRequestOrder extends Enum<PullRequestOrder>
PullRequestSearchRequest.getOrder()
Enum Constant and Description |
---|
CLOSED_DATE
Indicates pull requests will be ordered by closed timestamp in descending order.
|
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 PARTICIPANT_STATUS
status
.
For PRs where the participant has the same status NEWEST
order will be appliedfor more information on restrictions
public 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()
NEWEST
Copyright © 2022 Atlassian. All rights reserved.