Class SwapLegAmount.Builder

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

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

      • get

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

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

        public SwapLegAmount.Builder amount​(CurrencyAmount amount)
        Sets the amount associated with the leg. The meaning associated with this amount is implied by the context. This amount may have been currency converted.
        Parameters:
        amount - the new value, not null
        Returns:
        this, for chaining, not null
      • payReceive

        public SwapLegAmount.Builder payReceive​(PayReceive payReceive)
        Sets whether the leg is pay or receive.
        Parameters:
        payReceive - the new value, not null
        Returns:
        this, for chaining, not null
      • type

        public SwapLegAmount.Builder type​(SwapLegType type)
        Sets the type of the leg, such as Fixed or Ibor.
        Parameters:
        type - the new value, not null
        Returns:
        this, for chaining, not null
      • currency

        public SwapLegAmount.Builder currency​(Currency currency)
        Sets the currency of the leg. This is not be affected by any currency conversion applied to the amount.
        Parameters:
        currency - 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<SwapLegAmount>