Class SchedulePeriod.Builder

    • Method Detail

      • startDate

        public SchedulePeriod.Builder startDate​(java.time.LocalDate startDate)
        Sets the start date of this period, used for financial calculations such as interest accrual.

        The first date in the schedule period, typically treated as inclusive. If the schedule adjusts for business days, then this is the adjusted date.

        Parameters:
        startDate - the new value, not null
        Returns:
        this, for chaining, not null
      • endDate

        public SchedulePeriod.Builder endDate​(java.time.LocalDate endDate)
        Sets the end date of this period, used for financial calculations such as interest accrual.

        The last date in the schedule period, typically treated as exclusive. If the schedule adjusts for business days, then this is the adjusted date.

        Parameters:
        endDate - the new value, not null
        Returns:
        this, for chaining, not null
      • unadjustedStartDate

        public SchedulePeriod.Builder unadjustedStartDate​(java.time.LocalDate unadjustedStartDate)
        Sets the unadjusted start date.

        The start date before any business day adjustment. If the schedule adjusts for business days, then this is typically the regular periodic date. If the schedule does not adjust for business days, then this is the same as the start date.

        When building, this will default to the start date if not specified.

        Parameters:
        unadjustedStartDate - the new value, not null
        Returns:
        this, for chaining, not null
      • unadjustedEndDate

        public SchedulePeriod.Builder unadjustedEndDate​(java.time.LocalDate unadjustedEndDate)
        Sets the unadjusted end date.

        The end date before any business day adjustment. If the schedule adjusts for business days, then this is typically the regular periodic date. If the schedule does not adjust for business days, then this is the same as the end date.

        When building, this will default to the end date if not specified.

        Parameters:
        unadjustedEndDate - the new value, not null
        Returns:
        this, for chaining, not null