class ForexDiscountingMethod {

  public double parSpread(final Forex fx, final MulticurveProviderInterface multicurves) {
    ArgumentChecker.notNull(fx, "Forex");
    ArgumentChecker.notNull(multicurves, "Multi-curves provider");
    final Currency ccy2 = fx.getCurrency2();
    final double pv2 = multicurves.getFxRates().convert(presentValue(fx, multicurves), ccy2).getAmount();
    final double dfEnd = multicurves.getDiscountFactor(fx.getCurrency2(), fx.getPaymentTime());
    final double notional1 = fx.getPaymentCurrency1().getAmount();
    return pv2 / (notional1 * dfEnd);
  }

  private  ForexDiscountingMethod();

}