public enum ClockStep extends Enum<ClockStep> implements Enumeration
Enum Constant and Description |
---|
SYSTEM_CLOCK
The clock always matches the system clock.
|
SYSTEM_CLOCK_MULTIPLIER
The clock advances by the elapsed system time between ticks, multiplied by a user specified value.
|
TICK_DEPENDENT
The clock advances by a fixed step each tick.
|
Modifier and Type | Method and Description |
---|---|
static ClockStep |
getDefault()
Get the enum constant that is considered to be the default.
|
static ClockStep |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static ClockStep |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClockStep[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClockStep SYSTEM_CLOCK
public static final ClockStep SYSTEM_CLOCK_MULTIPLIER
public static final ClockStep TICK_DEPENDENT
public static ClockStep[] values()
for (ClockStep c : ClockStep.values()) System.out.println(c);
public static ClockStep 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 int getValue()
getValue
in interface Enumeration
@Nonnull public static ClockStep getFromValue(int value)
value
- a numeric value.