class InterestRateCurveSensitivity {

  public Map<String, Double> totalSensitivityByCurve() {
    final HashMap<String, Double> s = new HashMap<>();
    for (final Map.Entry<String, List<DoublesPair>> entry : _sensitivity.entrySet()) {
      double total = 0.0;
      for (final DoublesPair p : entry.getValue()) {
        total += p.second;
      }
      s.put(entry.getKey(), total);
    }
    return s;
  }

  public  InterestRateCurveSensitivity();
  public  InterestRateCurveSensitivity(final Map<String, List<DoublesPair>> sensitivity);

}