Package org.pau.assetmanager.entities

Examples of org.pau.assetmanager.entities.HistoricalStockValue


    for (Integer currentYear : yearToMonthToValueTable.rowKeySet()) {
      Map<Integer, Double> monthToValue = yearToMonthToValueTable
          .row(currentYear);
      for (Integer currentMonth : monthToValue.keySet()) {
        Double value = monthToValue.get(currentMonth);
        HistoricalStockValue historicalStockValue = new HistoricalStockValue();
        historicalStockValue.setCollectionDate(new Date());
        historicalStockValue.setMonth(currentMonth);
        historicalStockValue.setYear(currentYear);
        historicalStockValue.setSymbol(symbol);
        historicalStockValue.setNumericalValue(Math
            .round(value * 100.0));
        historicalStockValues.add(historicalStockValue);
      }
    }
    return historicalStockValues;
View Full Code Here

TOP

Related Classes of org.pau.assetmanager.entities.HistoricalStockValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.