public enum PriorityLevel extends Enum<PriorityLevel>
Enum Constant and Description |
---|
High
The High priority, after higher but before Normal.
|
Higher
The Higher priority, after highest but before high.
|
Highest
The highest priority, after ultimate but before higher.
|
Low
The low priority, after Normal but before Lower.
|
Lower
The lower priority, after Low but before Lowest.
|
Lowest
The lowest priority, after lower, is the less important priority level.
|
None
The None priority when none has been defined.
|
Normal
The normal priority, after high but before Low.
|
Ultimate
The Ultimate is the most important priority level.
|
Modifier and Type | Method and Description |
---|---|
int |
level()
Gets the level.
|
int |
level(int weight)
Gets the level be adding an extra weight.
|
static PriorityLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PriorityLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PriorityLevel None
public static final PriorityLevel Lowest
public static final PriorityLevel Lower
public static final PriorityLevel Low
public static final PriorityLevel Normal
public static final PriorityLevel High
public static final PriorityLevel Higher
public static final PriorityLevel Highest
public static final PriorityLevel Ultimate
public static PriorityLevel[] values()
for (PriorityLevel c : PriorityLevel.values()) System.out.println(c);
public static PriorityLevel 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 int level()
public int level(int weight)
weight
- the weight value shall be strictly lower than 1000Copyright © 2011–2016 JRebirth OSS. All rights reserved.