public enum ClockRange extends Enum<ClockRange> implements Enumeration
Enum Constant and Description |
---|
CLAMPED
The clock stops when either its start or end time is reached.
|
LOOP_STOP
The clock stops when its start time is reached, but loops back to start when its end time is reached.
|
UNBOUNDED
The clock can continue forever in either direction.
|
Modifier and Type | Method and Description |
---|---|
static ClockRange |
getDefault()
Get the enum constant that is considered to be the default.
|
static ClockRange |
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 ClockRange |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClockRange[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClockRange UNBOUNDED
public static final ClockRange CLAMPED
public static final ClockRange LOOP_STOP
public static ClockRange[] values()
for (ClockRange c : ClockRange.values()) System.out.println(c);
public static ClockRange 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 ClockRange getFromValue(int value)
value
- a numeric value.@Nonnull public static ClockRange getDefault()