Package cdc.issues.answers
Enum IssueStatus
- java.lang.Object
-
- java.lang.Enum<IssueStatus>
-
- cdc.issues.answers.IssueStatus
-
- All Implemented Interfaces:
Serializable,Comparable<IssueStatus>
public enum IssueStatus extends Enum<IssueStatus>
Enumeration of possible issue statues.- Author:
- Damien Carbonne
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSEDThe issue was marked asRESOLVEDand has disappeared.CONFIRMEDA user reviewed anOPENissue and confirmed it.
Its resolution depends on internal actions.OPENThe issue has been detected, is not yet resolved, and no user action has been taken.REOPENEDThe issue was marked asRESOLVEDandIssueResolution.FIXEDby a user, but is still detected.RESOLVEDThe issue is considered as resolved.WAITINGA user reviewed an open or confirmed issue and indicated that its resolution depends on external actions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCompliantWith(IssueResolution resolution)static IssueStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static IssueStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPEN
public static final IssueStatus OPEN
The issue has been detected, is not yet resolved, and no user action has been taken.
-
CONFIRMED
public static final IssueStatus CONFIRMED
A user reviewed anOPENissue and confirmed it.
Its resolution depends on internal actions.
-
WAITING
public static final IssueStatus WAITING
A user reviewed an open or confirmed issue and indicated that its resolution depends on external actions.
-
RESOLVED
public static final IssueStatus RESOLVED
The issue is considered as resolved.Its resolution must be
IssueResolution.FIXED,IssueResolution.FALSE_POSITIVEorIssueResolution.WONT_FIX.
-
REOPENED
public static final IssueStatus REOPENED
The issue was marked asRESOLVEDandIssueResolution.FIXEDby a user, but is still detected.
-
CLOSED
public static final IssueStatus CLOSED
The issue was marked asRESOLVEDand has disappeared.
-
-
Method Detail
-
values
public static IssueStatus[] 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 (IssueStatus c : IssueStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IssueStatus 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
-
isCompliantWith
public boolean isCompliantWith(IssueResolution resolution)
- Parameters:
resolution- The resolution.- Returns:
trueifresolutionis compliant with this status.
-
-