Serializable
, Comparable<Scheduler.IdleState>
public static enum Scheduler.IdleState extends Enum<Scheduler.IdleState>
Scheduler
.Enum Constant | 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 | 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
Scheduler
will not automatically advance the clock nor execute any runnables.public static final Scheduler.IdleState UNPAUSED
Scheduler
's clock won't automatically advance the clock but will automatically
execute any runnables scheduled to execute at or before the current time.public static final Scheduler.IdleState CONSTANT_IDLE
Scheduler
will automatically execute any runnables (past, present or future) as
soon as they are posted and advance the clock if necessary.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