public Double getPrice(String symbol) { Double price = 0.0; if (symbol.equalsIgnoreCase("vineyard")) { symbol = _symbolService.getSymbol("vineyard"); } if (symbol.equalsIgnoreCase("wine")) { price = 136.50; } return price; }
private Symbol symbol(String n) { return Symbol.getSymbol(n); }
protected void putSymbol(String name, Symbol s) { _putString(name, s.getSymbol(), SYMBOL); }