Package cdm.base.datetime
Enum PeriodExtendedEnum
- All Implemented Interfaces:
Serializable,Comparable<PeriodExtendedEnum>
The enumerated values to specify a time period containing the additional value of Term.
- Version:
- 5.30.0
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic PeriodExtendedEnumfromDisplayName(String name) toString()static PeriodExtendedEnumReturns the enum constant of this type with the specified name.static PeriodExtendedEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
H
Hour -
D
Day -
W
Week -
M
Month -
Y
Year -
T
Term. The period commencing on the effective date and ending on the termination date. The T period always appears in association with periodMultiplier = 1, and the notation is intended for use in contexts where the interval thus qualified (e.g. accrual period, payment period, reset period, ...) spans the entire term of the trade. -
C
CalculationPeriod - the period corresponds to the calculation period For example, used in the Commodity Markets to indicate that a reference contract is the one that corresponds to the period of the calculation period.
-
-
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<PeriodExtendedEnum>
-
toDisplayString
-