public static enum SpeedLimit.Type extends java.lang.Enum<SpeedLimit.Type>
Enum Constant and Description |
---|
MAXIMUM |
RECOMMENDED |
SCHOOL_ZONE |
Modifier and Type | Method and Description |
---|---|
static SpeedLimit.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SpeedLimit.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpeedLimit.Type MAXIMUM
public static final SpeedLimit.Type RECOMMENDED
public static final SpeedLimit.Type SCHOOL_ZONE
public static SpeedLimit.Type[] values()
for (SpeedLimit.Type c : SpeedLimit.Type.values()) System.out.println(c);
public static SpeedLimit.Type 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