Package biz.onixs.cme.stp.handler
Enum CommodityBase
- java.lang.Object
-
- java.lang.Enum<CommodityBase>
-
- biz.onixs.cme.stp.handler.CommodityBase
-
- All Implemented Interfaces:
Serializable,Comparable<CommodityBase>
public enum CommodityBase extends Enum<CommodityBase>
General base type of the commodity traded.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AgriculturalAgricultural.BiofuelsBiofuels.CoalCoal.CommodityIndexCommodity Index.CrudeCrude.EmissionsEmissions.FrieghtFrieght.MetalsMetals.NaturalGasNaturalGas.NGLPetrochemicalsNGL/Petrochemicals.NoneDefault value.PlasticsPlastics.PowerPower.RefinedRefined.SoftsSofts.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommodityBaseforValue(String value)Returns enum value for the string representationStringgetValue()Gets current value.static CommodityBasevalueOf(String name)Returns the enum constant of this type with the specified name.static CommodityBase[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final CommodityBase None
Default value. Do not use it directly.
-
Agricultural
public static final CommodityBase Agricultural
Agricultural.
-
Biofuels
public static final CommodityBase Biofuels
Biofuels.
-
Coal
public static final CommodityBase Coal
Coal.
-
CommodityIndex
public static final CommodityBase CommodityIndex
Commodity Index.
-
Crude
public static final CommodityBase Crude
Crude.
-
Emissions
public static final CommodityBase Emissions
Emissions.
-
Frieght
public static final CommodityBase Frieght
Frieght.
-
Metals
public static final CommodityBase Metals
Metals.
-
NaturalGas
public static final CommodityBase NaturalGas
NaturalGas.
-
NGLPetrochemicals
public static final CommodityBase NGLPetrochemicals
NGL/Petrochemicals.
-
Plastics
public static final CommodityBase Plastics
Plastics.
-
Power
public static final CommodityBase Power
Power.
-
Refined
public static final CommodityBase Refined
Refined.
-
Softs
public static final CommodityBase Softs
Softs.
-
-
Method Detail
-
values
public static CommodityBase[] 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 (CommodityBase c : CommodityBase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommodityBase 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
-
getValue
public String getValue()
Gets current value.- Returns:
- current value.
-
forValue
public static CommodityBase forValue(String value)
Returns enum value for the string representation- Parameters:
value- value- Returns:
- value.
-
-