Enum GitHubBranchEnv
- java.lang.Object
-
- java.lang.Enum<GitHubBranchEnv>
-
- com.github.kostyasha.github.integration.branch.data.GitHubBranchEnv
-
- All Implemented Interfaces:
GitHubEnv<GitHubBranchCause>
,Serializable
,Comparable<GitHubBranchEnv>
public enum GitHubBranchEnv extends Enum<GitHubBranchEnv> implements GitHubEnv<GitHubBranchCause>
- Author:
- Kanstantsin Shautsou
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAUSE_SKIP
FULL_REF
HEAD_SHA
NAME
SHORT_DESC
TITLE
URL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParam(GitHubBranchCause cause, List<ParameterValue> params)
static void
getParams(GitHubBranchCause cause, List<ParameterValue> params)
String
toString()
static GitHubBranchEnv
valueOf(String name)
Returns the enum constant of this type with the specified name.static GitHubBranchEnv[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NAME
public static final GitHubBranchEnv NAME
-
SHORT_DESC
public static final GitHubBranchEnv SHORT_DESC
-
TITLE
public static final GitHubBranchEnv TITLE
-
URL
public static final GitHubBranchEnv URL
-
HEAD_SHA
public static final GitHubBranchEnv HEAD_SHA
-
FULL_REF
public static final GitHubBranchEnv FULL_REF
-
CAUSE_SKIP
public static final GitHubBranchEnv CAUSE_SKIP
-
-
Field Detail
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static GitHubBranchEnv[] 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 (GitHubBranchEnv c : GitHubBranchEnv.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GitHubBranchEnv 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
-
addParam
public void addParam(GitHubBranchCause cause, List<ParameterValue> params)
- Specified by:
addParam
in interfaceGitHubEnv<GitHubBranchCause>
-
toString
public String toString()
- Overrides:
toString
in classEnum<GitHubBranchEnv>
-
getParams
public static void getParams(GitHubBranchCause cause, List<ParameterValue> params)
-
-