Package net.toddm.comm
Enum Priority.StartingPriority
- java.lang.Object
-
- java.lang.Enum<Priority.StartingPriority>
-
- net.toddm.comm.Priority.StartingPriority
-
- All Implemented Interfaces:
Serializable,Comparable<Priority.StartingPriority>
- Enclosing class:
- Priority
public static enum Priority.StartingPriority extends Enum<Priority.StartingPriority>
An enumeration of priority levels that calling code can claim for theirWorkinstances
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HIGHWork with this priority level will be done before any other pending work.LOWWork with this priority level will be done after any other pending work.MEDIUMIn general, unless you are sure that your work merits special priority, this is the default priority to use when submitting work.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPriorityValue()Returns the integer value of the this Priority instancestatic Priority.StartingPriorityvalueOf(String name)Returns the enum constant of this type with the specified name.static Priority.StartingPriority[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOW
public static final Priority.StartingPriority LOW
Work with this priority level will be done after any other pending work.
-
MEDIUM
public static final Priority.StartingPriority MEDIUM
In general, unless you are sure that your work merits special priority, this is the default priority to use when submitting work.
-
HIGH
public static final Priority.StartingPriority HIGH
Work with this priority level will be done before any other pending work.
-
-
Method Detail
-
values
public static Priority.StartingPriority[] 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 (Priority.StartingPriority c : Priority.StartingPriority.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Priority.StartingPriority 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
-
getPriorityValue
public int getPriorityValue()
Returns the integer value of the this Priority instance
-
-