@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj != null && obj.getClass() == this.getClass()) { FloatingLegCashFlows other = (FloatingLegCashFlows) obj; return JodaBeanUtils.equal(getCashFlowDetails(), other.getCashFlowDetails()); } return false; }
/** * Restricted copy constructor. * * @param beanToCopy the bean to copy from, not null */ protected Builder(FloatingLegCashFlows beanToCopy) { this._cashFlowDetails = new ArrayList<FloatingCashFlowDetails>(beanToCopy.getCashFlowDetails()); }