public static enum Slow.Speed extends Enum<Slow.Speed>
Enum Constant and Description |
---|
MILLISECONDS
The operation may take up to a few hundred milliseconds.
|
MINUTES
The operation may take up to a few minutes.
|
SECONDS
The operation may take up to a few seconds.
|
Modifier and Type | Method and Description |
---|---|
static Slow.Speed |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Slow.Speed[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Slow.Speed MILLISECONDS
public static final Slow.Speed SECONDS
public static final Slow.Speed MINUTES
public static Slow.Speed[] values()
for (Slow.Speed c : Slow.Speed.values()) System.out.println(c);
public static Slow.Speed 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