Package org.kohsuke.github
Enum GHReleaseBuilder.MakeLatest
- java.lang.Object
-
- java.lang.Enum<GHReleaseBuilder.MakeLatest>
-
- org.kohsuke.github.GHReleaseBuilder.MakeLatest
-
- All Implemented Interfaces:
Serializable,Comparable<GHReleaseBuilder.MakeLatest>
- Enclosing class:
- GHReleaseBuilder
public static enum GHReleaseBuilder.MakeLatest extends Enum<GHReleaseBuilder.MakeLatest>
Values for whether this release should be the latest.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()To string.static GHReleaseBuilder.MakeLatestvalueOf(String name)Returns the enum constant of this type with the specified name.static GHReleaseBuilder.MakeLatest[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRUE
public static final GHReleaseBuilder.MakeLatest TRUE
Make this the latest release
-
FALSE
public static final GHReleaseBuilder.MakeLatest FALSE
Do not make this the latest release
-
LEGACY
public static final GHReleaseBuilder.MakeLatest LEGACY
Latest release is determined by date and higher semantic version
-
-
Method Detail
-
values
public static GHReleaseBuilder.MakeLatest[] 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 (GHReleaseBuilder.MakeLatest c : GHReleaseBuilder.MakeLatest.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GHReleaseBuilder.MakeLatest 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
-
toString
public String toString()
To string.- Overrides:
toStringin classEnum<GHReleaseBuilder.MakeLatest>- Returns:
- the string
-
-