Class TenorAdjustment.Builder

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

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

      • get

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

        public TenorAdjustment.Builder tenor​(Tenor tenor)
        Sets the tenor to be added.

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

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

        public TenorAdjustment.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 TenorAdjustment.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 String toString()
        Overrides:
        toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<TenorAdjustment>