public double nextCoupon(Date settlement) { if (settlement == null) { settlement = settlementDate(); } return(CashFlows.nextCouponRate(cashflows_, false, settlement)); }
public static double nextCouponRate(Bond bond, Date settlementDate = null) { if (settlementDate == null) { settlementDate = bond.settlementDate(); } return(CashFlows.nextCouponRate(bond.cashflows(), false, settlementDate)); }