public enum PullRequestState extends Enum<PullRequestState>
states
a pull request can be in.PullRequest.getState()
Enum Constant and Description |
---|
DECLINED
The
pull request has been declined. |
MERGED
The
pull request has been accepted and merged. |
OPEN
The
pull request is open. |
Modifier and Type | Method and Description |
---|---|
static PullRequestState |
fromId(int id) |
int |
getId() |
static PullRequestState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PullRequestState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PullRequestState DECLINED
pull request
has been declined.public static final PullRequestState MERGED
pull request
has been accepted and merged.public static final PullRequestState OPEN
pull request
is open.public static PullRequestState[] values()
for (PullRequestState c : PullRequestState.values()) System.out.println(c);
public static PullRequestState 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 PullRequestState fromId(int id)
public int getId()
Copyright © 2021 Atlassian. All rights reserved.