Package cdm.base.staticdata.asset.common
Enum DeliveryNearbyTypeEnum
- All Implemented Interfaces:
Serializable,Comparable<DeliveryNearbyTypeEnum>
@RosettaEnum("DeliveryNearbyTypeEnum")
public enum DeliveryNearbyTypeEnum
extends Enum<DeliveryNearbyTypeEnum>
- Version:
- 5.30.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDescribes the reference contract as the one that pertains to the month-year of the calculation period.Specifies that the reference delivery date of the underlying Commodity shall be the expiration date of the futures contract in the nth nearby month.Specifies that the reference delivery date of the underlying Commodity shall be the expiration date of the futures contract in the nth nearby week. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeliveryNearbyTypeEnumfromDisplayName(String name) toString()static DeliveryNearbyTypeEnumReturns the enum constant of this type with the specified name.static DeliveryNearbyTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CALCULATION_PERIOD
@RosettaEnumValue("CalculationPeriod") public static final DeliveryNearbyTypeEnum CALCULATION_PERIODDescribes the reference contract as the one that pertains to the month-year of the calculation period. If used, the nearby count is expected to be 0. -
NEARBY_MONTH
Specifies that the reference delivery date of the underlying Commodity shall be the expiration date of the futures contract in the nth nearby month. -
NEARBY_WEEK
Specifies that the reference delivery date of the underlying Commodity shall be the expiration date of the futures contract in the nth nearby week.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
fromDisplayName
-
toString
- Overrides:
toStringin classEnum<DeliveryNearbyTypeEnum>
-
toDisplayString
-