Package com.lastcalc.parsers.amounts

Examples of com.lastcalc.parsers.amounts.UnitParser


      updateExchangeRates();
    }
    final LinkedList<Parser> parsers = Lists.newLinkedList();
    if (currenciesByCode != null) {
      for (final Entry<String, Currency> e : currenciesByCode.entrySet()) {
        parsers.add(new UnitParser(e.getValue(), TokenList.createD(e.getKey())));
        parsers.add(new UnitParser(e.getValue(), TokenList.createD(e.getKey().toLowerCase())));
      }
      parsers.add(new UnitParser(currenciesByCode.get("USD"), TokenList.createD("$")));
      parsers.add(new UnitParser(currenciesByCode.get("EUR"), TokenList.createD("�")));
      parsers.add(new UnitParser(currenciesByCode.get("JPY"), TokenList.createD("�")));
      parsers.add(new UnitParser(currenciesByCode.get("GBP"), TokenList.createD("�")));

      parsers.add(new CurrencyReverser());
    }

    return parsers;
View Full Code Here

TOP

Related Classes of com.lastcalc.parsers.amounts.UnitParser

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.