@Override public SwaptionTrade build() { return new SwaptionTrade( info, product, premium); }
/** * Obtains an instance of a Swaption trade with an adjustable payment. * * @param info the trade info * @param product the product * @param premium the premium * @return the trade */ public static SwaptionTrade of(TradeInfo info, Swaption product, AdjustablePayment premium) { return new SwaptionTrade(info, product, premium); }
@Override public SwaptionTrade withInfo(TradeInfo info) { return new SwaptionTrade(info, product, premium); }
/** * Obtains an instance of a Swaption trade with a fixed payment. * * @param info the trade info * @param product the product * @param premium the premium * @return the trade */ public static SwaptionTrade of(TradeInfo info, Swaption product, Payment premium) { return new SwaptionTrade(info, product, AdjustablePayment.of(premium)); }