public static enum Job.Type extends Enum<Job.Type>
Enum Constant and Description |
---|
OTHER
The job is executed by some other program.
|
RUN_PLUGIN
The job is executed by a plugin.
|
Modifier and Type | Field and Description |
---|---|
private String |
displayValue |
private int |
value |
private static Map<Integer,Job.Type> |
valueMapping
Maps the integer that is stored in the database.
|
Modifier and Type | Method and Description |
---|---|
static Job.Type |
fromValue(int value)
Get the
Job.Status object when you know the integer code. |
int |
getValue()
Get the integer value that is used when storing a
Job.Status
to the database. |
String |
toString() |
static Job.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Job.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Job.Type RUN_PLUGIN
public static final Job.Type OTHER
private static final Map<Integer,Job.Type> valueMapping
private final int value
private final String displayValue
public static Job.Type[] values()
for (Job.Type c : Job.Type.values()) System.out.println(c);
public static Job.Type 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 static Job.Type fromValue(int value)
Job.Status
object when you know the integer code.value
- The integer value.public int getValue()
Job.Status
to the database.