Enum DayTypeEnum

java.lang.Object
java.lang.Enum<DayTypeEnum>
cdm.base.datetime.DayTypeEnum
All Implemented Interfaces:
Serializable, Comparable<DayTypeEnum>

@RosettaEnum("DayTypeEnum") public enum DayTypeEnum extends Enum<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 Details

    • BUSINESS

      @RosettaEnumValue("Business") public static final DayTypeEnum BUSINESS
      Applies when calculating the number of days between two dates the count includes only business days.
    • CALENDAR

      @RosettaEnumValue("Calendar") public static final DayTypeEnum CALENDAR
      Applies when calculating the number of days between two dates the count includes all calendar days.
    • CURRENCY_BUSINESS

      @RosettaEnumValue("CurrencyBusiness") public static final DayTypeEnum CURRENCY_BUSINESS
      Applies when calculating the number of days between two dates the count includes only currency business days.
    • EXCHANGE_BUSINESS

      @RosettaEnumValue("ExchangeBusiness") public static final DayTypeEnum EXCHANGE_BUSINESS
      Applies when calculating the number of days between two dates the count includes only stock exchange business days.
    • SCHEDULED_TRADING_DAY

      @RosettaEnumValue("ScheduledTradingDay") public static final DayTypeEnum SCHEDULED_TRADING_DAY
      Applies when calculating the number of days between two dates the count includes only scheduled trading days.
  • Method Details

    • values

      public static DayTypeEnum[] 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

      public static DayTypeEnum 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 name
      NullPointerException - if the argument is null
    • fromDisplayName

      public static DayTypeEnum fromDisplayName(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DayTypeEnum>
    • toDisplayString

      public String toDisplayString()