@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj != null && obj.getClass() == this.getClass()) { CurveSensitivities other = (CurveSensitivities) obj; return JodaBeanUtils.equal(getSensitivities(), other.getSensitivities()); } return false; }
/** * Restricted copy constructor. * * @param beanToCopy the bean to copy from, not null */ private Builder(CurveSensitivities beanToCopy) { this._sensitivities = new HashMap<Pair<String, Currency>, Double>(beanToCopy.getSensitivities()); }