Package org.kohsuke.github
Enum GHCommentAuthorAssociation
- java.lang.Object
-
- java.lang.Enum<GHCommentAuthorAssociation>
-
- org.kohsuke.github.GHCommentAuthorAssociation
-
- All Implemented Interfaces:
Serializable
,Comparable<GHCommentAuthorAssociation>
public enum GHCommentAuthorAssociation extends Enum<GHCommentAuthorAssociation>
How is an user associated with a repository?.- Author:
- Kohsuke Kawaguchi
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLLABORATOR
Author has been invited to collaborate on the repository.CONTRIBUTOR
Author has previously committed to the repository.FIRST_TIME_CONTRIBUTOR
Author has not previously committed to the repository.FIRST_TIMER
Author has not previously committed to GitHub.MEMBER
Author is a member of the organization that owns the repository.NONE
Author has no association with the repository.OWNER
Author is the owner of the repository.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GHCommentAuthorAssociation
valueOf(String name)
Returns the enum constant of this type with the specified name.static GHCommentAuthorAssociation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COLLABORATOR
public static final GHCommentAuthorAssociation COLLABORATOR
Author has been invited to collaborate on the repository.
-
CONTRIBUTOR
public static final GHCommentAuthorAssociation CONTRIBUTOR
Author has previously committed to the repository.
-
FIRST_TIMER
public static final GHCommentAuthorAssociation FIRST_TIMER
Author has not previously committed to GitHub.
-
FIRST_TIME_CONTRIBUTOR
public static final GHCommentAuthorAssociation FIRST_TIME_CONTRIBUTOR
Author has not previously committed to the repository.
-
MEMBER
public static final GHCommentAuthorAssociation MEMBER
Author is a member of the organization that owns the repository.
-
NONE
public static final GHCommentAuthorAssociation NONE
Author has no association with the repository.
-
OWNER
public static final GHCommentAuthorAssociation OWNER
Author is the owner of the repository.
-
-
Method Detail
-
values
public static GHCommentAuthorAssociation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GHCommentAuthorAssociation c : GHCommentAuthorAssociation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GHCommentAuthorAssociation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-