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