Package org.gitlab4j.api
Enum Constants.SquashOption
- java.lang.Object
-
- java.lang.Enum<Constants.SquashOption>
-
- org.gitlab4j.api.Constants.SquashOption
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Constants.SquashOption>
- Enclosing interface:
- Constants
public static enum Constants.SquashOption extends java.lang.Enum<Constants.SquashOption>
Enum for the build_git_strategy of the project instance.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
DEFAULT_OFF
DEFAULT_ON
NEVER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Constants.SquashOption
forValue(java.lang.String value)
java.lang.String
toString()
java.lang.String
toValue()
static Constants.SquashOption
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Constants.SquashOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER
public static final Constants.SquashOption NEVER
-
ALWAYS
public static final Constants.SquashOption ALWAYS
-
DEFAULT_ON
public static final Constants.SquashOption DEFAULT_ON
-
DEFAULT_OFF
public static final Constants.SquashOption DEFAULT_OFF
-
-
Method Detail
-
values
public static Constants.SquashOption[] 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 (Constants.SquashOption c : Constants.SquashOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Constants.SquashOption valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
forValue
public static Constants.SquashOption forValue(java.lang.String value)
-
toValue
public java.lang.String toValue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Constants.SquashOption>
-
-