public enum FuelType extends Enum<FuelType>
| Enum Constant and Description |
|---|
BATTERY
For BEV (Battery Electric Vehicle), PHEV (Plug-in Hybrid Electric Vehicle), solar vehicles and other vehicles which run on a battery.
|
CNG
For vehicles using compressed natural gas.
|
DIESEL |
GASOLINE |
HYDROGEN
For FCEV (fuel cell electric vehicle).
|
LPG
For vehicles using liquefied petroleum gas.
|
| Modifier and Type | Method and Description |
|---|---|
static FuelType |
valueForString(String value) |
static FuelType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FuelType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FuelType GASOLINE
public static final FuelType DIESEL
public static final FuelType CNG
public static final FuelType LPG
public static final FuelType HYDROGEN
public static final FuelType BATTERY
public static FuelType[] values()
for (FuelType c : FuelType.values()) System.out.println(c);
public static FuelType 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