SpreadDoublesCurve extends DoublesCurve { public DoublesCurve[] getUnderlyingCurves() { return _curves; } protected  SpreadDoublesCurve();  SpreadDoublesCurve(final CurveSpreadFunction spreadFunction, final DoublesCurve... curves);  SpreadDoublesCurve(final CurveSpreadFunction spreadFunction, final String name, final DoublesCurve... curves); static SpreadDoublesCurve from(final CurveSpreadFunction spreadFunction, final DoublesCurve... curves); static SpreadDoublesCurve from(final CurveSpreadFunction spreadFunction, final String name, final DoublesCurve... curves); Set<String> getUnderlyingNames(); String getLongName(); DoublesCurve[] getUnderlyingCurves(); @Override Double[] getXData(); @Override Double[] getYData(); @Override Double getYValue(final Double x); @Override Double[] getYValueParameterSensitivity(final Double x); @Override double getDyDx(final double x); @Override int size(); @Override boolean equals(final Object obj); @Override int hashCode(); static SpreadDoublesCurve.Meta meta(); @Override SpreadDoublesCurve.Meta metaBean(); final Property<CurveSpreadFunction> spreadFunction(); final Property<Function<Double, Double>> f(); final Property<DoublesCurve[]> curves(); @Override SpreadDoublesCurve clone(); @Override String toString();  }
@Test public void testGetters() { assertEquals(SPREAD1.getName(), NAME1); assertArrayEquals(SPREAD1.getUnderlyingCurves(), CURVES1); assertEquals(SPREAD2.getName(), NAME2); assertArrayEquals(SPREAD2.getUnderlyingCurves(), CURVES2); assertEquals(SPREAD3.getName(), NAME3); assertArrayEquals(SPREAD3.getUnderlyingCurves(), CURVES3); }