public static enum Vehicle.Type extends Enum<Vehicle.Type>
Enum Constant and Description |
---|
LIMO
Limousine.
|
NOT_SUPPLIED
The supplier did not specify the vehicle type.
|
OTHER
Other type of vehicle.
|
STANDARD
Standard vehicle.
|
VAN
Van.
|
Modifier and Type | Method and Description |
---|---|
static Vehicle.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Vehicle.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Vehicle.Type NOT_SUPPLIED
public static final Vehicle.Type STANDARD
public static final Vehicle.Type LIMO
public static final Vehicle.Type VAN
public static final Vehicle.Type OTHER
public static Vehicle.Type[] values()
for (Vehicle.Type c : Vehicle.Type.values()) System.out.println(c);
public static Vehicle.Type 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