@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj != null && obj.getClass() == this.getClass()) { SwapNode other = (SwapNode) obj; return JodaBeanUtils.equal(getStartTenor(), other.getStartTenor()) && JodaBeanUtils.equal(getMaturityTenor(), other.getMaturityTenor()) && JodaBeanUtils.equal(getPayLegConvention(), other.getPayLegConvention()) && JodaBeanUtils.equal(getReceiveLegConvention(), other.getReceiveLegConvention()) && (isUseFixings() == other.isUseFixings()) && super.equals(obj); } return false; }