class CapFloorIbor extends CouponFloating implements CapFloor {

  @SuppressWarnings("deprecation")
  public CouponIborSpread toCoupon() {
    try {
      return new CouponIborSpread(getCurrency(), getPaymentTime(), getFundingCurveName(), getFixingAccrualFactor(), getNotional(), getFixingTime(), _index, _fixingPeriodStartTime,
          _fixingPeriodEndTime,
          _fixingAccrualFactor, _forwardCurveName);
    } catch (final IllegalStateException e) {
      return new CouponIborSpread(getCurrency(), getPaymentTime(), getFixingAccrualFactor(), getNotional(), getFixingTime(), _index, _fixingPeriodStartTime, _fixingPeriodEndTime,
          _fixingAccrualFactor);
    }
  }

  @Deprecated public  CapFloorIbor(final Currency currency, final double paymentTime, final String fundingCurveName, final double paymentYearFraction, final double notional,
      final double fixingTime, final IborIndex index, final double fixingPeriodStartTime, final double fixingPeriodEndTime, final double fixingYearFraction,
      final String forwardCurveName, final double strike, final boolean isCap);
  public  CapFloorIbor(final Currency currency, final double paymentTime, final double paymentYearFraction, final double notional, final double fixingTime, final IborIndex index,
      final double fixingPeriodStartTime, final double fixingPeriodEndTime, final double fixingYearFraction, final double strike, final boolean isCap);

}