@PublicAPI public enum JobPriority extends Enum<JobPriority> implements Serializable
Enum Constant and Description |
---|
HIGH
High priority
|
HIGHEST
Highest priority
|
IDLE
Lowest priority
|
LOW
Low priority
|
LOWEST
Lowest priority
|
NORMAL
Normal Priority
|
Modifier and Type | Method and Description |
---|---|
static JobPriority |
findPriority(int priorityValue)
Get the priority associated with the given priorityValue.
|
static JobPriority |
findPriority(String name)
Get the priority associated with the given name.
|
int |
getPriority()
Return the integer representing the priority.
|
String |
toString() |
static JobPriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobPriority IDLE
public static final JobPriority LOWEST
public static final JobPriority LOW
public static final JobPriority NORMAL
public static final JobPriority HIGH
public static final JobPriority HIGHEST
public static JobPriority[] values()
for (JobPriority c : JobPriority.values()) System.out.println(c);
public static JobPriority 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 toString()
toString
in class Enum<JobPriority>
Enum.toString()
public int getPriority()
public static JobPriority findPriority(String name)
name
- the name of the priority to find as a string.public static JobPriority findPriority(int priorityValue)
priorityValue
- the priority value to find.