class SwapFixedIborSpreadDiscountingMethod extends SwapFixedCouponDiscountingMethod {

  public CurrencyAmount presentValueIborNoSpreadPositiveNotional(final Annuity<? extends Payment> leg, final MulticurveProviderInterface multicurves) {
    Currency ccy = leg.getCurrency();
    double pv = 0.0;
    for (int loopcpn = 0; loopcpn < leg.getNumberOfPayments(); loopcpn++) {
      ArgumentChecker.isTrue(leg.getNthPayment(loopcpn) instanceof CouponIborSpread, "Coupon should be Ibor with spread");
      pv += METHOD_CPN_IBOR_SPREAD.presentValueNoSpreadPositiveNotional((CouponIborSpread) leg.getNthPayment(loopcpn), multicurves).getAmount(ccy);
    }
    return CurrencyAmount.of(leg.getCurrency(), pv);
  }

  private  SwapFixedIborSpreadDiscountingMethod();

}