class DepositIborDiscountingMethod {

  public double parSpread(final DepositIbor deposit, final MulticurveProviderInterface multicurve) {
    return multicurve.getSimplyCompoundForwardRate(deposit.getIndex(), deposit.getStartTime(), deposit.getEndTime(), deposit.getAccrualFactor()) - deposit.getRate();
  }

  private  DepositIborDiscountingMethod();

}