public static enum Scheduler.IdleState extends Enum<Scheduler.IdleState>
Describes the current state of a Scheduler
.
Enum Constant and Description |
---|
CONSTANT_IDLE
The Scheduler will automatically execute any runnables (past, present or future)
as soon as they are posted and advance the clock if necessary.
|
PAUSED
The Scheduler will not automatically advance the clock nor execute any runnables.
|
UNPAUSED
The Scheduler's clock won't automatically advance the clock but will automatically
execute any runnables scheduled to execute at or before the current time.
|
Modifier and Type | Method and Description |
---|---|
static Scheduler.IdleState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Scheduler.IdleState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scheduler.IdleState PAUSED
public static final Scheduler.IdleState UNPAUSED
public static final Scheduler.IdleState CONSTANT_IDLE
public static Scheduler.IdleState[] values()
for (Scheduler.IdleState c : Scheduler.IdleState.values()) System.out.println(c);
public static Scheduler.IdleState 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 null