Пример #1
0
 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;
 }
Пример #2
0
 private Symbol symbol(String n) {
   return Symbol.getSymbol(n);
 }
Пример #3
0
 protected void putSymbol(String name, Symbol s) {
   _putString(name, s.getSymbol(), SYMBOL);
 }