Double function ( Double arg0 ) { switch ( this . getType ( ) ) { case COMMON : return this . getLastDividend ( ) / arg0 ; case PREFERRED : return this . getFixedDividend ( ) * this . getParValue ( ) / arg0 ; } return - 1.0 ; }
calculate the dividend . concode_field_sep Double parValue concode_elem_sep String stockSymbol concode_elem_sep long serialVersionUID concode_elem_sep int FIFTEEN_MINUTES concode_elem_sep Double fixedDividend concode_elem_sep TreeMap<Date,Trade> trades concode_elem_sep Logger logger concode_elem_sep StockTypes type concode_elem_sep Double lastDividend concode_field_sep void setFixedDividend concode_elem_sep void setLastDividend concode_elem_sep void setTrades concode_elem_sep Double getLastDividend concode_elem_sep Double getFixedDividend concode_elem_sep void buy concode_elem_sep void sell concode_elem_sep Double getParValue concode_elem_sep String getStockSymbol concode_elem_sep void setType concode_elem_sep Double getLastStockPrice concode_elem_sep void setStockSymbol concode_elem_sep Double PERatio concode_elem_sep StockTypes getType concode_elem_sep void setParValue concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep TreeMap<Date,Trade> getTrades concode_elem_sep Double getStockPriceLastFifteenMinutes concode_elem_sep String toString