Package org.isda.cdm
Enum QuantityNotationEnum
- java.lang.Object
-
- java.lang.Enum<QuantityNotationEnum>
-
- org.isda.cdm.QuantityNotationEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<QuantityNotationEnum>
public enum QuantityNotationEnum extends java.lang.Enum<QuantityNotationEnum>
Enumeration for the different types of quantity notations that can be specified for a product, such as the number of securities, or notional etc.- Version:
- 2.5.4
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOTIONAL
When the specified quantity corresponds to a notionalNUMBER_OF_SECURITIES
When the specified quantity corresponds to the number of securities
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static QuantityNotationEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static QuantityNotationEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NUMBER_OF_SECURITIES
public static final QuantityNotationEnum NUMBER_OF_SECURITIES
When the specified quantity corresponds to the number of securities
-
NOTIONAL
public static final QuantityNotationEnum NOTIONAL
When the specified quantity corresponds to a notional
-
-
Method Detail
-
values
public static QuantityNotationEnum[] 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 (QuantityNotationEnum c : QuantityNotationEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QuantityNotationEnum valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<QuantityNotationEnum>
-
-