Enum BusinessDayConventionEnum

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

@RosettaEnum("BusinessDayConventionEnum") public enum BusinessDayConventionEnum extends Enum<BusinessDayConventionEnum>
The enumerated values to specify the convention for adjusting any relevant date if it would otherwise fall on a day that is not a valid business day.
Version:
5.30.0
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The non-business date will be adjusted to the first following day that is a business day
    Per 2000 ISDA Definitions, Section 4.11.
    The non-business date will be adjusted to the first following day that is a business day unless that day falls in the next calendar month, in which case that date will be the first preceding day that is a business day.
    The non-business date will be adjusted to the first preceding day that is a business day unless that day falls in the previous calendar month, in which case that date will be the first following day that us a business day.
    The non-business date will be adjusted to the nearest day that is a business day - i.e. if the non-business day falls on any day other than a Sunday or a Monday, it will be the first preceding day that is a business day, and will be the first following business day if it falls on a Sunday or a Monday.
    The date will not be adjusted if it falls on a day that is not a business day.
    The date adjustments conventions are defined elsewhere, so it is not required to specify them here.
    The non-business day will be adjusted to the first preceding day that is a business day.
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • FOLLOWING

      @RosettaEnumValue("FOLLOWING") public static final BusinessDayConventionEnum FOLLOWING
      The non-business date will be adjusted to the first following day that is a business day
    • FRN

      @RosettaEnumValue("FRN") public static final BusinessDayConventionEnum FRN
      Per 2000 ISDA Definitions, Section 4.11. FRN Convention; Eurodollar Convention. FRN is included here as a type of business day convention although it does not strictly fall within ISDA's definition of a Business Day Convention and does not conform to the simple definition given above.
    • MODFOLLOWING

      @RosettaEnumValue("MODFOLLOWING") public static final BusinessDayConventionEnum MODFOLLOWING
      The non-business date will be adjusted to the first following day that is a business day unless that day falls in the next calendar month, in which case that date will be the first preceding day that is a business day.
    • PRECEDING

      @RosettaEnumValue("PRECEDING") public static final BusinessDayConventionEnum PRECEDING
      The non-business day will be adjusted to the first preceding day that is a business day.
    • MODPRECEDING

      @RosettaEnumValue("MODPRECEDING") public static final BusinessDayConventionEnum MODPRECEDING
      The non-business date will be adjusted to the first preceding day that is a business day unless that day falls in the previous calendar month, in which case that date will be the first following day that us a business day.
    • NEAREST

      @RosettaEnumValue("NEAREST") public static final BusinessDayConventionEnum NEAREST
      The non-business date will be adjusted to the nearest day that is a business day - i.e. if the non-business day falls on any day other than a Sunday or a Monday, it will be the first preceding day that is a business day, and will be the first following business day if it falls on a Sunday or a Monday.
    • NONE

      @RosettaEnumValue("NONE") public static final BusinessDayConventionEnum NONE
      The date will not be adjusted if it falls on a day that is not a business day.
    • NOT_APPLICABLE

      @RosettaEnumValue("NotApplicable") public static final BusinessDayConventionEnum NOT_APPLICABLE
      The date adjustments conventions are defined elsewhere, so it is not required to specify them here.
  • Method Details

    • values

      public static BusinessDayConventionEnum[] 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 BusinessDayConventionEnum 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 BusinessDayConventionEnum fromDisplayName(String name)
    • toString

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

      public String toDisplayString()