public enum Priority extends Enum<Priority>
Cell
s.Enum Constant and Description |
---|
HIGH
High priority.
|
LOW
Low priority.
|
LOWEST
Lowest priority.
|
NORMAL
Normal priority.
|
Modifier and Type | Method and Description |
---|---|
static int |
compare(Priority priority1,
Priority priority2)
Compare two priorities.
|
static Priority |
fromValue(String v)
Get
Priority from string value. |
int |
getPriorityNumber()
Priority expressed as number for simple comparison.
|
String |
toString() |
String |
value()
Getter for the label representation of the
Priority . |
static Priority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Priority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Priority HIGH
public static final Priority NORMAL
public static final Priority LOW
public static final Priority LOWEST
public static Priority[] values()
for (Priority c : Priority.values()) System.out.println(c);
public static Priority valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String value()
Priority
.public int getPriorityNumber()
Bigger number means higher priority.
public String toString()
toString
in class Enum<Priority>
Enum.toString()
public static int compare(Priority priority1, Priority priority2)
Return the values ready to be used in a Comparator
interface.
priority1
- the first priority.priority2
- the second priority.Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a