Modifier and Type | Field and Description |
---|---|
private java.lang.String |
mode
The job mode.
|
private boolean |
timed
Flag indicating if this job mode is timed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTimed()
Check if this job mode is timed (i.e.
|
static JobMode |
resolveJobMode(java.lang.String mode)
Resolve the job mode from the given string.
|
static JobMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JobMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobMode NOW
public static final JobMode RECURRENT
public static final JobMode ONE_TIME
private final boolean timed
private final java.lang.String mode
public static JobMode[] values()
for (JobMode c : JobMode.values()) System.out.println(c);
public static JobMode 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 nullpublic boolean isTimed()