org.kohsuke.github
Enum GHEvent
java.lang.Object
java.lang.Enum<GHEvent>
org.kohsuke.github.GHEvent
- All Implemented Interfaces:
- Serializable, Comparable<GHEvent>
public enum GHEvent
- extends Enum<GHEvent>
Hook event type.
See http://developer.github.com/v3/events/types/
- Author:
- Kohsuke Kawaguchi
|
Method Summary |
static GHEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GHEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
COMMIT_COMMENT
public static final GHEvent COMMIT_COMMENT
CREATE
public static final GHEvent CREATE
DELETE
public static final GHEvent DELETE
DOWNLOAD
public static final GHEvent DOWNLOAD
FOLLOW
public static final GHEvent FOLLOW
FORK
public static final GHEvent FORK
FORK_APPLY
public static final GHEvent FORK_APPLY
GIST
public static final GHEvent GIST
GOLLUM
public static final GHEvent GOLLUM
ISSUE_COMMENT
public static final GHEvent ISSUE_COMMENT
ISSUES
public static final GHEvent ISSUES
MEMBER
public static final GHEvent MEMBER
PUBLIC
public static final GHEvent PUBLIC
PULL_REQUEST
public static final GHEvent PULL_REQUEST
PUSH
public static final GHEvent PUSH
TEAM_ADD
public static final GHEvent TEAM_ADD
WATCH
public static final GHEvent WATCH
values
public static GHEvent[] 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 (GHEvent c : GHEvent.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static GHEvent 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 name
NullPointerException - if the argument is null
Copyright © 2012. All Rights Reserved.