FuelType (API Reference)
Enum Class FuelType
- All Implemented Interfaces:
Serializable,Comparable<FuelType>,Constable
Defines possible fuel types provided by a fuel station.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBio-Diesel fuel type.Compressed natural gas fuel type.Diesel fuel type.Diesel with additives fuel type.10% Ethanol and 90% Gasoline fuel type.20% Ethanol and 80% Gasoline fuel type.85% Ethanol and 15% Gasoline fuel type.Ethanol fuel type.Ethanol with additives fuel type.Gasohol 91 fuel type.Gasohol 95 fuel type.Gasoline fuel type.Hydrotreated vegetable oil fuel type.Hydrogen fuel type.Liquefied natural gas fuel type.Liquified petroleum gas fuel type.Midgrade fuel type.Octane 100 fuel type.Octane 87 fuel type.Octane 89 fuel type.Octane 90 fuel type.Octane 91 fuel type.Octane 92 fuel type.Octane 93 fuel type.Octane 95 fuel type.Octane 98 fuel type.Premium fuel type.Premium with additives fuel type.Regular fuel type.Regular with additives fuel type. -
Method Summary
-
Enum Constant Details
-
DIESEL
Diesel fuel type.
-
LPG
Liquified petroleum gas fuel type.
-
BIO_DIESEL
Bio-Diesel fuel type.
-
CNG
Compressed natural gas fuel type.
-
DIESEL_WITH_ADDITIVES
Diesel with additives fuel type.
-
E10
10% Ethanol and 90% Gasoline fuel type.
-
E20
20% Ethanol and 80% Gasoline fuel type.
-
E85
85% Ethanol and 15% Gasoline fuel type.
-
ETHANOL
Ethanol fuel type.
-
ETHANOL_WITH_ADDITIVES
Ethanol with additives fuel type.
-
GASOLINE
Gasoline fuel type.
-
GASOHOL_91
Gasohol 91 fuel type.
-
GASOHOL_95
Gasohol 95 fuel type.
-
HVO
Hydrotreated vegetable oil fuel type.
-
HYDROGEN
Hydrogen fuel type.
-
LNG
Liquefied natural gas fuel type.
-
MIDGRADE
Midgrade fuel type.
-
PREMIUM
Premium fuel type.
-
PREMIUM_WITH_ADDITIVES
Premium with additives fuel type.
-
REGULAR
Regular fuel type.
-
REGULAR_WITH_ADDITIVES
Regular with additives fuel type.
-
OCTANE_87
Octane 87 fuel type.
-
OCTANE_89
Octane 89 fuel type.
-
OCTANE_90
Octane 90 fuel type.
-
OCTANE_91
Octane 91 fuel type.
-
OCTANE_92
Octane 92 fuel type.
-
OCTANE_93
Octane 93 fuel type.
-
OCTANE_95
Octane 95 fuel type.
-
OCTANE_98
Octane 98 fuel type.
-
OCTANE_100
Octane 100 fuel type.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-