Package com.google.gwt.i18n.client
Class CurrencyList
java.lang.Object
com.google.gwt.i18n.client.CurrencyList
- All Implemented Interfaces:
Iterable<CurrencyData>
Generated class containing all the CurrencyImpl instances. This is just
the fallback in case the I18N module is not included.
-
Field Summary
Modifier and TypeFieldDescriptionprotected HashMap
<String, CurrencyData> Map of currency codes to CurrencyData.protected JavaScriptObject
JS map of currency codes to CurrencyData objects.Map of currency codes to localized currency names.protected JavaScriptObject
JS map of currency codes to localized currency names. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CurrencyList
get()
Return the singleton instance of CurrencyList.Return the default currency data for this locale.protected CurrencyData
Return the default currency data for this locale.protected CurrencyData
Return the default currency data for this locale.final Iterator
<CurrencyData> iterator()
Returns an iterator for the list of currencies.final Iterator
<CurrencyData> iterator
(boolean includeDeprecated) Returns an iterator for the list of currencies, optionally including deprecated ones.protected HashMap
<String, CurrencyData> Loads the currency map.protected JavaScriptObject
Loads the currency map from a JS object literal.Loads the currency names map.protected JavaScriptObject
Loads the currency names map from a JS object literal.final CurrencyData
Lookup a currency based on the ISO4217 currency code.final String
lookupName
(String currencyCode) Lookup a currency name based on the ISO4217 currency code.protected static final JavaScriptObject
overrideMap
(JavaScriptObject original, JavaScriptObject override) Add all entries inoverride
to the original map, replacing any existing entries.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
dataMapJava
Map of currency codes to CurrencyData. -
dataMapNative
JS map of currency codes to CurrencyData objects. Each currency code is assumed to be a valid JS object key. -
namesMapJava
Map of currency codes to localized currency names. This is kept separate fromdataMapJava
above so that the names can be completely removed by the compiler if they are not used. -
namesMapNative
JS map of currency codes to localized currency names. This is kept separate fromdataMapNative
above so that the names can be completely removed by the compiler if they are not used. Each currency code is assumed to be a valid JS object key.
-
-
Constructor Details
-
CurrencyList
public CurrencyList()
-
-
Method Details
-
get
Return the singleton instance of CurrencyList. -
overrideMap
protected static final JavaScriptObject overrideMap(JavaScriptObject original, JavaScriptObject override) Add all entries inoverride
to the original map, replacing any existing entries. This is used by subclasses that need to slightly alter the data used by the parent locale. -
getDefault
Return the default currency data for this locale. Generated implementations override this method. -
iterator
Returns an iterator for the list of currencies. Deprecated currencies will not be included.- Specified by:
iterator
in interfaceIterable<CurrencyData>
-
iterator
Returns an iterator for the list of currencies, optionally including deprecated ones.- Parameters:
includeDeprecated
- true if deprecated currencies should be included
-
lookup
Lookup a currency based on the ISO4217 currency code.- Parameters:
currencyCode
- ISO4217 currency code- Returns:
- currency data, or null if code not found
-
lookupName
Lookup a currency name based on the ISO4217 currency code.- Parameters:
currencyCode
- ISO4217 currency code- Returns:
- name of the currency, or null if code not found
-
getDefaultJava
Return the default currency data for this locale. Generated implementations override this method. -
getDefaultNative
Return the default currency data for this locale. Generated implementations override this method. -
loadCurrencyMapJava
Loads the currency map. Generated implementations override this method. -
loadCurrencyMapNative
Loads the currency map from a JS object literal. Generated implementations override this method. -
loadNamesMapJava
Loads the currency names map. Generated implementations override this method. -
loadNamesMapNative
Loads the currency names map from a JS object literal. Generated implementations override this method.
-