Package cdc.issues.stats
Enum CheckResult
- java.lang.Object
-
- java.lang.Enum<CheckResult>
-
- cdc.issues.stats.CheckResult
-
- All Implemented Interfaces:
Serializable,Comparable<CheckResult>
public enum CheckResult extends Enum<CheckResult>
Enumeration of possible test results.- Author:
- Damien Carbonne
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLEDThe rule is disabled.FAILUREThe rule is enabled, the test was passed and failed for item.SKIPPEDThe rule is enabled, the test was skipped (not applicable to item).SUCCESSThe rule is enabled, the test was passed and successful for item.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CheckResultvalueOf(String name)Returns the enum constant of this type with the specified name.static CheckResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLED
public static final CheckResult DISABLED
The rule is disabled.
-
SUCCESS
public static final CheckResult SUCCESS
The rule is enabled, the test was passed and successful for item.
-
FAILURE
public static final CheckResult FAILURE
The rule is enabled, the test was passed and failed for item.
-
SKIPPED
public static final CheckResult SKIPPED
The rule is enabled, the test was skipped (not applicable to item).
-
-
Method Detail
-
values
public static CheckResult[] 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 (CheckResult c : CheckResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CheckResult 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
-
-