public class Priority extends Object
Modifier and Type | Field and Description |
---|---|
static Priority |
EMERGENCY
Highest level of priority.
|
static Priority |
NON_URGENT
Lowest level of priority.
|
static Priority |
NORMAL
Normal level of priority.
|
static Priority |
URGENT
Urgent level of priority.
|
Modifier and Type | Method and Description |
---|---|
String |
getValue()
Returns the priority value.
|
static Priority |
register(String name)
Register an option tag that can later be retrieved using
valueOf(String) . |
void |
setValue(String value)
Sets the priority value.
|
static Priority |
valueOf(String value)
Returns the priority associated to a value.
|
public static final Priority EMERGENCY
public static final Priority NON_URGENT
public static final Priority NORMAL
public static final Priority URGENT
public Priority(String value)
value
- The priority value.public static Priority register(String name)
valueOf(String)
. If the option tag already exists, the existing
tag is returned, otherwise a new instance is created.name
- The name.public static Priority valueOf(String value)
value
- The value.public String getValue()
public void setValue(String value)
value
- The priority value.Copyright © 2005–2014. All rights reserved.