public static enum CarEntity.Speed extends java.lang.Enum<CarEntity.Speed>
| Modifier and Type | Field and Description |
|---|---|
float |
modifier |
| Modifier and Type | Method and Description |
|---|---|
static CarEntity.Speed |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CarEntity.Speed[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CarEntity.Speed SLOW
public static final CarEntity.Speed MEDIUM
public static final CarEntity.Speed FAST
public static CarEntity.Speed[] values()
for (CarEntity.Speed c : CarEntity.Speed.values()) System.out.println(c);
public static CarEntity.Speed valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null