table.addCell(dividend.getType() == null ? none : dividend.getType().toString()); table.addCell(dividend.getAmount() == null ? none : String.format("%s (%s)", //$NON-NLS-1$ dividend.getAmount().toPlainString(), dividend.getCurrency())); table.addCell(dividend.getExecutionDate() == null ? none : dividend.getExecutionDate()); table.addCell(dividend.getDeclareDate() == null ? none : dividend.getDeclareDate()); table.addCell(dividend.getPaymentDate() == null ? none : dividend.getPaymentDate()); table.addCell(dividend.getRecordDate() == null ? none : dividend.getRecordDate()); table.addCell(dividend.getStatus() == null ? none : dividend.getStatus().toString()); table.addCell(dividend.getFrequency() == null ? none : dividend.getFrequency().toString());
if(!dividendEvent.getInstrument().equals(getUnderlyingInstrument())) { WRONG_DIVIDEND_EQUITY_FOR_OPTION_CHAIN.warn(OptionChain.class, dividendEvent.getInstrument(), getUnderlyingInstrument()); return false;
if(inData instanceof DividendEvent) { DividendEvent dividendEvent = (DividendEvent)inData; Collection<DividendEvent> dividends = lastKnownDividends.get(dividendEvent.getEquity()); if(dividends != null && dividends.contains(dividendEvent)) { dividendEvent); originalSubscriber.publishTo(inData); lastKnownDividends.put(dividendEvent.getEquity(), dividendEvent);