Package org.gitlab4j.api.models
Enum Project.MergeMethod
- java.lang.Object
-
- java.lang.Enum<Project.MergeMethod>
-
- org.gitlab4j.api.models.Project.MergeMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<Project.MergeMethod>
,java.lang.constant.Constable
- Enclosing class:
- Project
public static enum Project.MergeMethod extends Enum<Project.MergeMethod>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FF
MERGE
REBASE_MERGE
-
Method Summary
Modifier and Type Method Description static Project.MergeMethod
forValue(String value)
String
toString()
String
toValue()
static Project.MergeMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static Project.MergeMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MERGE
public static final Project.MergeMethod MERGE
-
REBASE_MERGE
public static final Project.MergeMethod REBASE_MERGE
-
FF
public static final Project.MergeMethod FF
-
-
Method Detail
-
values
public static Project.MergeMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Project.MergeMethod 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
-
forValue
public static Project.MergeMethod forValue(String value)
-
toValue
public String toValue()
-
toString
public String toString()
- Overrides:
toString
in classEnum<Project.MergeMethod>
-
-