addCurrency static method

void addCurrency(
  1. String code,
  2. CurrencyInfo currency
)

Add a new currency

Implementation

static void addCurrency(String code, CurrencyInfo currency) {
  _initializeDefaultCurrencies();
  _currencies[code.toUpperCase()] = currency;
}