service
public class YahooFinanceService extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static YahooFinanceService |
getInstance()
Method to return the singleton instance of this class.
|
Stock |
getStock(java.lang.String symbol)
Returns a Stock Object that contains info about a specified stock.
|
void |
update()
Work horse for updating the cache, runs on its own thread and
does a complete replacement of the Global HashMap.
|
public void update()
public Stock getStock(java.lang.String symbol)
symbol - the company's stock symbolStockpublic static YahooFinanceService getInstance()