@Override protected void propertySet(Bean bean, String propertyName, Object newValue, boolean quiet) { switch (propertyName.hashCode()) { case -1583746178: // startTenor ((SwapNode) bean).setStartTenor((Tenor) newValue); return; case 45907375: // maturityTenor ((SwapNode) bean).setMaturityTenor((Tenor) newValue); return; case 774631511: // payLegConvention ((SwapNode) bean).setPayLegConvention((ExternalId) newValue); return; case -560732676: // receiveLegConvention ((SwapNode) bean).setReceiveLegConvention((ExternalId) newValue); return; case 1829944031: // useFixings ((SwapNode) bean).setUseFixings((Boolean) newValue); return; } super.propertySet(bean, propertyName, newValue, quiet); }
@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; }