InterestRateCurveSensitivity { public InterestRateCurveSensitivity cleaned() { return new InterestRateCurveSensitivity(InterestRateCurveSensitivityUtils.clean(_sensitivity, 0, 0)); } InterestRateCurveSensitivity();  InterestRateCurveSensitivity(final Map<String, List<DoublesPair>> sensitivity); static InterestRateCurveSensitivity of(final String name, final List<DoublesPair> sensitivityCurve); Map<String, List<DoublesPair>> getSensitivities(); Set<String> getCurves(); InterestRateCurveSensitivity plus(final InterestRateCurveSensitivity other); InterestRateCurveSensitivity plus(final String curveName, final List<DoublesPair> list); InterestRateCurveSensitivity multipliedBy(final double factor); InterestRateCurveSensitivity cleaned(); InterestRateCurveSensitivity cleaned(final double relTol, final double absTol); Map<String, Double> totalSensitivityByCurve(); double totalSensitivity(); @Override String toString(); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test(expectedExceptions = IllegalArgumentException.class) public void testCleanNegativeAbsoluteTolerance() { new InterestRateCurveSensitivity(SENSITIVITY_11).cleaned(EPS, -EPS); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testCleanNegativeRelativeTolerance() { new InterestRateCurveSensitivity(SENSITIVITY_11).cleaned(-EPS, EPS); }