Package agents.markets
Enum FuelsMarket.FuelType
- java.lang.Object
-
- java.lang.Enum<FuelsMarket.FuelType>
-
- agents.markets.FuelsMarket.FuelType
-
- All Implemented Interfaces:
Serializable
,Comparable<FuelsMarket.FuelType>
- Enclosing class:
- FuelsMarket
public static enum FuelsMarket.FuelType extends Enum<FuelsMarket.FuelType>
Available types of fuel traded atFuelsMarket
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FuelsMarket.FuelType
valueOf(String name)
Returns the enum constant of this type with the specified name.static FuelsMarket.FuelType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NATURAL_GAS
public static final FuelsMarket.FuelType NATURAL_GAS
Natural Gas
-
LIGNITE
public static final FuelsMarket.FuelType LIGNITE
Lignite
-
HARD_COAL
public static final FuelsMarket.FuelType HARD_COAL
Hard coal
-
OIL
public static final FuelsMarket.FuelType OIL
Fuel oils
-
WASTE
public static final FuelsMarket.FuelType WASTE
Wastes
-
NUCLEAR
public static final FuelsMarket.FuelType NUCLEAR
Nuclear fuel
-
HYDROGEN
public static final FuelsMarket.FuelType HYDROGEN
Hydrogen
-
BIOMASS
public static final FuelsMarket.FuelType BIOMASS
Biogas or other bio-fuels
-
OTHER
public static final FuelsMarket.FuelType OTHER
Any other type of fuel
-
-
Method Detail
-
values
public static FuelsMarket.FuelType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FuelsMarket.FuelType c : FuelsMarket.FuelType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FuelsMarket.FuelType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-