Package agents.markets
Enum FuelsMarket.Products
- java.lang.Object
-
- java.lang.Enum<FuelsMarket.Products>
-
- agents.markets.FuelsMarket.Products
-
- All Implemented Interfaces:
Serializable
,Comparable<FuelsMarket.Products>
- Enclosing class:
- FuelsMarket
public static enum FuelsMarket.Products extends Enum<FuelsMarket.Products>
Products of theFuelsMarket
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FuelBill
cost of purchased fuel amounts - negative for revenues from fuel offersFuelPrice
actual fuel priceFuelPriceForecast
forecasted value of a fuel price
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FuelsMarket.Products
valueOf(String name)
Returns the enum constant of this type with the specified name.static FuelsMarket.Products[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FuelPriceForecast
public static final FuelsMarket.Products FuelPriceForecast
forecasted value of a fuel price
-
FuelPrice
public static final FuelsMarket.Products FuelPrice
actual fuel price
-
FuelBill
public static final FuelsMarket.Products FuelBill
cost of purchased fuel amounts - negative for revenues from fuel offers
-
-
Method Detail
-
values
public static FuelsMarket.Products[] 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.Products c : FuelsMarket.Products.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.Products 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
-
-