public enum PullRequestRole extends Enum<PullRequestRole>
roles
a participant can have in a pull request.Enum Constant and Description |
---|
AUTHOR
The
participant is an author of the pull request . |
PARTICIPANT
The
participant has no explicit role in the pull request . |
REVIEWER
The
participant is a reviewer of the pull request . |
Modifier and Type | Method and Description |
---|---|
static PullRequestRole |
fromId(int id) |
Predicate<PullRequestParticipant> |
getFilter() |
int |
getId() |
boolean |
isExplicit() |
static PullRequestRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PullRequestRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PullRequestRole AUTHOR
participant
is an author of the pull request
.public static final PullRequestRole REVIEWER
participant
is a reviewer of the pull request
.public static final PullRequestRole PARTICIPANT
participant
has no explicit role in the pull request
.public static PullRequestRole[] values()
for (PullRequestRole c : PullRequestRole.values()) System.out.println(c);
public static PullRequestRole 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 null@Nonnull public static PullRequestRole fromId(int id)
@Nonnull public Predicate<PullRequestParticipant> getFilter()
public int getId()
public boolean isExplicit()
Copyright © 2019 Atlassian. All rights reserved.