net.corda.core.contracts

## Class BusinessCalendar.Companion

- net.corda.core.contracts.BusinessCalendar.Companion

- Enclosing class:
    BusinessCalendar

      public static class BusinessCalendar.Companion

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<java.time.LocalDate>` | `createGenericSchedule(java.time.LocalDate startDate, Frequency period, BusinessCalendar calendar, DateRollConvention dateRollConvention, int noOfAdditionalPeriods, java.time.LocalDate endDate, java.lang.Integer periodOffset)` Calculates an event schedule that moves events around to ensure they fall on working days.
    `java.util.List<java.lang.String>` | `getCalendars()`
    `BusinessCalendar` | `getInstance(java.lang.String calname)` Returns a business calendar that combines all the named holiday calendars into one list of holiday dates.
    `java.time.LocalDate` | `getOffsetDate(java.time.LocalDate startDate, Frequency period, int steps)` Calculates the date from @startDate moving forward @steps of time size @period. Does not apply calendar logic / roll conventions.
    `java.util.Map<java.lang.String,java.lang.String>` | `getTEST_CALENDAR_DATA()`
    `java.time.LocalDate` | `parseDateFromString(java.lang.String it)` Parses a date of the form YYYY-MM-DD, like 2016-01-10 for 10th Jan.

- - ### Method Detail

    - #### getCalendars

          public java.util.List<java.lang.String> getCalendars()

    - #### getTEST_CALENDAR_DATA

          public java.util.Map<java.lang.String,java.lang.String> getTEST_CALENDAR_DATA()

    - #### parseDateFromString

          public java.time.LocalDate parseDateFromString(java.lang.String it)

      Parses a date of the form YYYY-MM-DD, like 2016-01-10 for 10th Jan.

    - #### getInstance

          public BusinessCalendar getInstance(java.lang.String calname)

      Returns a business calendar that combines all the named holiday calendars into one list of holiday dates.

    - #### createGenericSchedule

          public java.util.List<java.time.LocalDate> createGenericSchedule(java.time.LocalDate startDate,
                                                                           Frequency period,
                                                                           BusinessCalendar calendar,
                                                                           DateRollConvention dateRollConvention,
                                                                           int noOfAdditionalPeriods,
                                                                           java.time.LocalDate endDate,
                                                                           java.lang.Integer periodOffset)

      Calculates an event schedule that moves events around to ensure they fall on working days.

    - #### getOffsetDate

          public java.time.LocalDate getOffsetDate(java.time.LocalDate startDate,
                                                   Frequency period,
                                                   int steps)

      Calculates the date from @startDate moving forward @steps of time size @period. Does not apply calendar logic / roll conventions.