Enum Constant and Description |
---|
High
High priority.
|
Higher
Higher than high priority.
|
Highest
Highest priority.
|
Low
Low priority.
|
Lower
Lower than low priority.
|
Lowest
Lowest possible priority.
|
Medium
Medium priority.
|
MediumHigh
Higher than medium priority.
|
MediumLow
Lower than medium priority.
|
Modifier and Type | Method and Description |
---|---|
Priority |
decrease()
Get a priority which is decreased one step if this
is not already the
lowest priority. |
static Priority |
decreased(Priority priority)
Get a decreased priority.
|
Priority |
increase()
Get a priority which is increased one step if this
is not already the
highest priority. |
static Priority |
increased(Priority priority)
Get an increased priority.
|
static Priority |
valueOf(java.lang.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 Lowest
public static final Priority Lower
public static final Priority Low
public static final Priority MediumLow
public static final Priority Medium
public static final Priority MediumHigh
public static final Priority High
public static final Priority Higher
public static final Priority Highest
public static Priority[] values()
for (Priority c : Priority.values()) System.out.println(c);
public static Priority valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@NotNull public Priority increase()
highest
priority.@NotNull public Priority decrease()
lowest
priority.@NotNull public static Priority increased(@NotNull Priority priority)
priority
- priority to increasepriority