public class CurrencyList extends Object implements Iterable<CurrencyData>
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,CurrencyData> |
dataMap
Map of currency codes to CurrencyData.
|
protected HashMap<String,String> |
namesMap
Map of currency codes to localized currency names.
|
| Constructor and Description |
|---|
CurrencyList() |
| Modifier and Type | Method and Description |
|---|---|
static CurrencyList |
get()
Return the singleton instance of CurrencyList.
|
CurrencyData |
getDefault()
Return the default currency data for this locale.
|
Iterator<CurrencyData> |
iterator()
Returns an iterator for the list of currencies.
|
Iterator<CurrencyData> |
iterator(boolean includeDeprecated)
Returns an iterator for the list of currencies, optionally including
deprecated ones.
|
protected HashMap<String,CurrencyData> |
loadCurrencyMap()
Loads the currency map.
|
protected HashMap<String,String> |
loadNamesMap()
Loads the currency names map.
|
CurrencyData |
lookup(String currencyCode)
Lookup a currency based on the ISO4217 currency code.
|
String |
lookupName(String currencyCode)
Lookup a currency name based on the ISO4217 currency code.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected HashMap<String,CurrencyData> dataMap
public static CurrencyList get()
public final Iterator<CurrencyData> iterator()
Deprecated currencies will not be included.
iterator in interface Iterable<CurrencyData>public final Iterator<CurrencyData> iterator(boolean includeDeprecated)
includeDeprecated - true if deprecated currencies should be includedpublic final CurrencyData lookup(String currencyCode)
currencyCode - ISO4217 currency codepublic final String lookupName(String currencyCode)
currencyCode - ISO4217 currency codepublic CurrencyData getDefault()
Generated implementations override this method.
protected HashMap<String,CurrencyData> loadCurrencyMap()
Generated implementations override this method.
Copyright © 2019–2020 The GWT Project Authors. All rights reserved.