Package org.jboss.set.aphrodite.domain
Enum IssuePriority
- java.lang.Object
-
- java.lang.Enum<IssuePriority>
-
- org.jboss.set.aphrodite.domain.IssuePriority
-
- All Implemented Interfaces:
Serializable,Comparable<IssuePriority>
public enum IssuePriority extends Enum<IssuePriority>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPriorityScore()booleanisHigherThan(IssuePriority otherPriority)static IssuePriorityvalueOf(String name)Returns the enum constant of this type with the specified name.static IssuePriority[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOCKER
public static final IssuePriority BLOCKER
-
CRITICAL
public static final IssuePriority CRITICAL
-
MAJOR
public static final IssuePriority MAJOR
-
MINOR
public static final IssuePriority MINOR
-
TRIVIAL
public static final IssuePriority TRIVIAL
-
OPTIONAL
public static final IssuePriority OPTIONAL
-
UNDEFINED
public static final IssuePriority UNDEFINED
-
-
Method Detail
-
values
public static IssuePriority[] 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 (IssuePriority c : IssuePriority.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IssuePriority 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
-
getPriorityScore
public int getPriorityScore()
-
isHigherThan
public boolean isHigherThan(IssuePriority otherPriority)
-
-