Package cdm.base.datetime
Enum DayTypeEnum
- All Implemented Interfaces:
Serializable,Comparable<DayTypeEnum>
Lists the enumerated values to specify the day type classification used in counting the number of days between two dates.
- Version:
- 5.30.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApplies when calculating the number of days between two dates the count includes only business days.Applies when calculating the number of days between two dates the count includes all calendar days.Applies when calculating the number of days between two dates the count includes only currency business days.Applies when calculating the number of days between two dates the count includes only stock exchange business days.Applies when calculating the number of days between two dates the count includes only scheduled trading days. -
Method Summary
Modifier and TypeMethodDescriptionstatic DayTypeEnumfromDisplayName(String name) toString()static DayTypeEnumReturns the enum constant of this type with the specified name.static DayTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BUSINESS
Applies when calculating the number of days between two dates the count includes only business days. -
CALENDAR
Applies when calculating the number of days between two dates the count includes all calendar days. -
CURRENCY_BUSINESS
Applies when calculating the number of days between two dates the count includes only currency business days. -
EXCHANGE_BUSINESS
Applies when calculating the number of days between two dates the count includes only stock exchange business days. -
SCHEDULED_TRADING_DAY
Applies when calculating the number of days between two dates the count includes only scheduled trading days.
-
-
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<DayTypeEnum>
-
toDisplayString
-