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 SummaryFieldsModifier and TypeFieldDescriptionprotected HashMap<String, CurrencyData> Map of currency codes to CurrencyData.protected JavaScriptObjectJS map of currency codes to CurrencyData objects.Map of currency codes to localized currency names.protected JavaScriptObjectJS map of currency codes to localized currency names.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic CurrencyListget()Return the singleton instance of CurrencyList.Return the default currency data for this locale.protected CurrencyDataReturn the default currency data for this locale.protected CurrencyDataReturn 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 JavaScriptObjectLoads the currency map from a JS object literal.Loads the currency names map.protected JavaScriptObjectLoads the currency names map from a JS object literal.final CurrencyDataLookup a currency based on the ISO4217 currency code.final StringlookupName(String currencyCode) Lookup a currency name based on the ISO4217 currency code.protected static final JavaScriptObjectoverrideMap(JavaScriptObject original, JavaScriptObject override) Add all entries inoverrideto the original map, replacing any existing entries.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Field Details- 
dataMapJavaMap of currency codes to CurrencyData.
- 
dataMapNativeJS map of currency codes to CurrencyData objects. Each currency code is assumed to be a valid JS object key.
- 
namesMapJavaMap of currency codes to localized currency names. This is kept separate fromdataMapJavaabove so that the names can be completely removed by the compiler if they are not used.
- 
namesMapNativeJS map of currency codes to localized currency names. This is kept separate fromdataMapNativeabove 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- 
CurrencyListpublic CurrencyList()
 
- 
- 
Method Details- 
getReturn the singleton instance of CurrencyList.
- 
overrideMapprotected static final JavaScriptObject overrideMap(JavaScriptObject original, JavaScriptObject override) Add all entries inoverrideto the original map, replacing any existing entries. This is used by subclasses that need to slightly alter the data used by the parent locale.
- 
getDefaultReturn the default currency data for this locale. Generated implementations override this method.
- 
iteratorReturns an iterator for the list of currencies. Deprecated currencies will not be included.- Specified by:
- iteratorin interface- Iterable<CurrencyData>
 
- 
iteratorReturns an iterator for the list of currencies, optionally including deprecated ones.- Parameters:
- includeDeprecated- true if deprecated currencies should be included
 
- 
lookupLookup a currency based on the ISO4217 currency code.- Parameters:
- currencyCode- ISO4217 currency code
- Returns:
- currency data, or null if code not found
 
- 
lookupNameLookup 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
 
- 
getDefaultJavaReturn the default currency data for this locale. Generated implementations override this method.
- 
getDefaultNativeReturn the default currency data for this locale. Generated implementations override this method.
- 
loadCurrencyMapJavaLoads the currency map. Generated implementations override this method.
- 
loadCurrencyMapNativeLoads the currency map from a JS object literal. Generated implementations override this method.
- 
loadNamesMapJavaLoads the currency names map. Generated implementations override this method.
- 
loadNamesMapNativeLoads the currency names map from a JS object literal. Generated implementations override this method.
 
-