YieldAndDiscountAddZeroFixedCurve extends YieldAndDiscountCurve { @Override public int getNumberOfParameters() { return _curve.getNumberOfParameters(); } YieldAndDiscountAddZeroFixedCurve(final String name, final boolean substract, final YieldAndDiscountCurve curve, final YieldAndDiscountCurve curveFixed); @Override double getInterestRate(final Double t); @Override double getForwardRate(final double t); @Override double[] getInterestRateParameterSensitivity(final double time); @Override int getNumberOfParameters(); @Override int getNumberOfIntrinsicParameters(final Set<String> curvesNames); @Override List<String> getUnderlyingCurvesNames(); YieldAndDiscountCurve getCurve(); YieldAndDiscountCurve getCurveFixed(); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test public void parameters() { assertEquals("YieldAndDiscountAddZeroFixedCurve: parameters", CURVE_MAIN.getNumberOfParameters(), CURVE_TOTAL.getNumberOfParameters()); }