/// <summary> /// Sets the swap product that was agreed when the trade occurred. /// <para> /// The product captures the contracted financial details of the trade. /// </para> /// </summary> /// <param name="product"> the new value, not null </param> /// <returns> this, for chaining, not null </returns> public Builder product(Swap product) { JodaBeanUtils.notNull(product, "product"); this.product_Renamed = product; return(this); }
//------------------------------------------------------------------------- /// <summary> /// Obtains an instance of a Swap trade. /// </summary> /// <param name="info"> the trade info </param> /// <param name="product"> the product </param> /// <returns> the trade </returns> public static SwapTrade of(TradeInfo info, Swap product) { return(new SwapTrade(info, product)); }
/// <summary> /// Restricted copy constructor. </summary> /// <param name="beanToCopy"> the bean to copy from, not null </param> internal Builder(SwapTrade beanToCopy) { this.info_Renamed = beanToCopy.Info; this.product_Renamed = beanToCopy.Product; }