Package org.kohsuke.github
Enum GHProjectsV2Item.ContentType
- java.lang.Object
-
- java.lang.Enum<GHProjectsV2Item.ContentType>
-
- org.kohsuke.github.GHProjectsV2Item.ContentType
-
- All Implemented Interfaces:
Serializable
,Comparable<GHProjectsV2Item.ContentType>
- Enclosing class:
- GHProjectsV2Item
public static enum GHProjectsV2Item.ContentType extends Enum<GHProjectsV2Item.ContentType>
The Enum ContentType.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DRAFTISSUE
The draftissue.ISSUE
The issue.PULLREQUEST
The pullrequest.UNKNOWN
The unknown.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GHProjectsV2Item.ContentType
valueOf(String name)
Returns the enum constant of this type with the specified name.static GHProjectsV2Item.ContentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ISSUE
public static final GHProjectsV2Item.ContentType ISSUE
The issue.
-
DRAFTISSUE
public static final GHProjectsV2Item.ContentType DRAFTISSUE
The draftissue.
-
PULLREQUEST
public static final GHProjectsV2Item.ContentType PULLREQUEST
The pullrequest.
-
UNKNOWN
public static final GHProjectsV2Item.ContentType UNKNOWN
The unknown.
-
-
Method Detail
-
values
public static GHProjectsV2Item.ContentType[] 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 (GHProjectsV2Item.ContentType c : GHProjectsV2Item.ContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GHProjectsV2Item.ContentType 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
-
-