Enum QualityGate.QualityGateType
- java.lang.Object
-
- java.lang.Enum<QualityGate.QualityGateType>
-
- io.jenkins.plugins.analysis.core.util.QualityGate.QualityGateType
-
- All Implemented Interfaces:
Serializable
,Comparable<QualityGate.QualityGateType>
- Enclosing class:
- QualityGate
public static enum QualityGate.QualityGateType extends Enum<QualityGate.QualityGateType>
Available quality gate types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELTA
DELTA_ERROR
DELTA_HIGH
DELTA_LOW
DELTA_NORMAL
NEW
NEW_ERROR
NEW_HIGH
NEW_LOW
NEW_NORMAL
TOTAL
TOTAL_ERROR
TOTAL_HIGH
TOTAL_LOW
TOTAL_NORMAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
Returns the localized human readable name of this type.Function<IssuesStatistics,Integer>
getSizeGetter()
Returns the method that should be used to determine the actual number of issues in the build.static QualityGate.QualityGateType
valueOf(String name)
Returns the enum constant of this type with the specified name.static QualityGate.QualityGateType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOTAL
public static final QualityGate.QualityGateType TOTAL
-
TOTAL_ERROR
public static final QualityGate.QualityGateType TOTAL_ERROR
-
TOTAL_HIGH
public static final QualityGate.QualityGateType TOTAL_HIGH
-
TOTAL_NORMAL
public static final QualityGate.QualityGateType TOTAL_NORMAL
-
TOTAL_LOW
public static final QualityGate.QualityGateType TOTAL_LOW
-
NEW
public static final QualityGate.QualityGateType NEW
-
NEW_ERROR
public static final QualityGate.QualityGateType NEW_ERROR
-
NEW_HIGH
public static final QualityGate.QualityGateType NEW_HIGH
-
NEW_NORMAL
public static final QualityGate.QualityGateType NEW_NORMAL
-
NEW_LOW
public static final QualityGate.QualityGateType NEW_LOW
-
DELTA
public static final QualityGate.QualityGateType DELTA
-
DELTA_ERROR
public static final QualityGate.QualityGateType DELTA_ERROR
-
DELTA_HIGH
public static final QualityGate.QualityGateType DELTA_HIGH
-
DELTA_NORMAL
public static final QualityGate.QualityGateType DELTA_NORMAL
-
DELTA_LOW
public static final QualityGate.QualityGateType DELTA_LOW
-
-
Method Detail
-
values
public static QualityGate.QualityGateType[] 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 (QualityGate.QualityGateType c : QualityGate.QualityGateType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QualityGate.QualityGateType 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
-
getDisplayName
public String getDisplayName()
Returns the localized human readable name of this type.- Returns:
- human readable name
-
getSizeGetter
public Function<IssuesStatistics,Integer> getSizeGetter()
Returns the method that should be used to determine the actual number of issues in the build.- Returns:
- the threshold getter
-
-