Enum SymbolicBuildReference
- java.lang.Object
-
- java.lang.Enum<SymbolicBuildReference>
-
- com.atlassian.bamboo.plugin.servlet.SymbolicBuildReference
-
- All Implemented Interfaces:
Serializable
,Comparable<SymbolicBuildReference>
public enum SymbolicBuildReference extends Enum<SymbolicBuildReference>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LATEST
LATEST_SUCCESSFUL
NONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLabel()
static SymbolicBuildReference
labelToReference(String label)
Returns the symbolic reference that matches the specified label, or NONE if there are no matching references.static SymbolicBuildReference
valueOf(String name)
Returns the enum constant of this type with the specified name.static SymbolicBuildReference[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final SymbolicBuildReference NONE
-
LATEST
public static final SymbolicBuildReference LATEST
-
LATEST_SUCCESSFUL
public static final SymbolicBuildReference LATEST_SUCCESSFUL
-
-
Method Detail
-
values
public static SymbolicBuildReference[] 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 (SymbolicBuildReference c : SymbolicBuildReference.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SymbolicBuildReference 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
-
getLabel
public String getLabel()
-
labelToReference
public static SymbolicBuildReference labelToReference(String label)
Returns the symbolic reference that matches the specified label, or NONE if there are no matching references.
-
-