Class PeriodAdjustment.Builder

  • All Implemented Interfaces:
    org.joda.beans.BeanBuilder<PeriodAdjustment>
    Enclosing class:
    PeriodAdjustment

    public static final class PeriodAdjustment.Builder
    extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PeriodAdjustment>
    The bean-builder for PeriodAdjustment.
    • Method Detail

      • get

        public java.lang.Object get​(java.lang.String propertyName)
        Specified by:
        get in interface org.joda.beans.BeanBuilder<PeriodAdjustment>
        Overrides:
        get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PeriodAdjustment>
      • set

        public PeriodAdjustment.Builder set​(org.joda.beans.MetaProperty<?> property,
                                            java.lang.Object value)
        Specified by:
        set in interface org.joda.beans.BeanBuilder<PeriodAdjustment>
        Overrides:
        set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PeriodAdjustment>
      • period

        public PeriodAdjustment.Builder period​(java.time.Period period)
        Sets the period to be added.

        When the adjustment is performed, this period will be added to the input date.

        Parameters:
        period - the new value, not null
        Returns:
        this, for chaining, not null
      • additionConvention

        public PeriodAdjustment.Builder additionConvention​(PeriodAdditionConvention additionConvention)
        Sets the addition convention to apply.

        When the adjustment is performed, this convention is used to refine the adjusted date. The most common convention is to move the end date to the last business day of the month if the start date is the last business day of the month.

        Parameters:
        additionConvention - the new value, not null
        Returns:
        this, for chaining, not null
      • adjustment

        public PeriodAdjustment.Builder adjustment​(BusinessDayAdjustment adjustment)
        Sets the business day adjustment that is performed to the result of the addition.

        This adjustment is applied to the result of the addition calculation.

        If no adjustment is required, use the 'None' business day adjustment.

        Parameters:
        adjustment - the new value, not null
        Returns:
        this, for chaining, not null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PeriodAdjustment>