public SwapSecurity( ZonedDateTime tradeDate, ZonedDateTime effectiveDate, ZonedDateTime maturityDate, String counterparty, SwapLeg payLeg, SwapLeg receiveLeg) { super(SECURITY_TYPE); setTradeDate(tradeDate); setEffectiveDate(effectiveDate); setMaturityDate(maturityDate); setCounterparty(counterparty); setPayLeg(payLeg); setReceiveLeg(receiveLeg); }
@Override protected void propertySet(String propertyName, Object newValue, boolean quiet) { switch (propertyName.hashCode()) { case 752419634: // tradeDate setTradeDate((ZonedDateTime) newValue); return; case -930389515: // effectiveDate setEffectiveDate((ZonedDateTime) newValue); return; case -414641441: // maturityDate setMaturityDate((ZonedDateTime) newValue); return; case -1651301782: // counterparty setCounterparty((String) newValue); return; case -995239866: // payLeg setPayLeg((SwapLeg) newValue); return; case 209233963: // receiveLeg setReceiveLeg((SwapLeg) newValue); return; } super.propertySet(propertyName, newValue, quiet); }