public class

CurrencyList

extends Object
implements Iterable<T>
java.lang.Object
   ↳ com.google.gwt.i18n.client.CurrencyList

Class Overview

Generated class containing all the CurrencyImpl instances. This is just the fallback in case the I18N module is not included.

Summary

Fields
protected HashMap<StringCurrencyData> dataMapJava Map of currency codes to CurrencyData.
protected JavaScriptObject dataMapNative JS map of currency codes to CurrencyData objects.
protected HashMap<StringString> namesMapJava Map of currency codes to localized currency names.
protected JavaScriptObject namesMapNative JS map of currency codes to localized currency names.
Public Constructors
CurrencyList()
Public Methods
static CurrencyList get()
Return the singleton instance of CurrencyList.
CurrencyData getDefault()
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.
final CurrencyData lookup(String currencyCode)
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 Methods
CurrencyData getDefaultJava()
Return the default currency data for this locale.
CurrencyData getDefaultNative()
Return the default currency data for this locale.
HashMap<StringCurrencyData> loadCurrencyMapJava()
Loads the currency map.
JavaScriptObject loadCurrencyMapNative()
Loads the currency map from a JS object literal.
HashMap<StringString> loadNamesMapJava()
Loads the currency names map.
JavaScriptObject loadNamesMapNative()
Loads the currency names map from a JS object literal.
final static JavaScriptObject overrideMap(JavaScriptObject original, JavaScriptObject override)
Add all entries in override to the original map, replacing any existing entries.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Iterable

Fields

protected HashMap<StringCurrencyData> dataMapJava

Map of currency codes to CurrencyData.

protected JavaScriptObject dataMapNative

JS map of currency codes to CurrencyData objects. Each currency code is assumed to be a valid JS object key.

protected HashMap<StringString> namesMapJava

Map of currency codes to localized currency names. This is kept separate from dataMapJava above so that the names can be completely removed by the compiler if they are not used.

protected JavaScriptObject namesMapNative

JS map of currency codes to localized currency names. This is kept separate from dataMapNative 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.

Public Constructors

public CurrencyList ()

Public Methods

public static CurrencyList get ()

Return the singleton instance of CurrencyList.

public CurrencyData getDefault ()

Return the default currency data for this locale. Generated implementations override this method.

public final Iterator<CurrencyData> iterator ()

Returns an iterator for the list of currencies. Deprecated currencies will not be included.

public final Iterator<CurrencyData> iterator (boolean includeDeprecated)

Returns an iterator for the list of currencies, optionally including deprecated ones.

Parameters
includeDeprecated true if deprecated currencies should be included

public final CurrencyData lookup (String currencyCode)

Lookup a currency based on the ISO4217 currency code.

Parameters
currencyCode ISO4217 currency code
Returns
  • currency data, or null if code not found

public final String lookupName (String currencyCode)

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

Protected Methods

protected CurrencyData getDefaultJava ()

Return the default currency data for this locale. Generated implementations override this method.

protected CurrencyData getDefaultNative ()

Return the default currency data for this locale. Generated implementations override this method.

protected HashMap<StringCurrencyData> loadCurrencyMapJava ()

Loads the currency map. Generated implementations override this method.

protected JavaScriptObject loadCurrencyMapNative ()

Loads the currency map from a JS object literal. Generated implementations override this method.

protected HashMap<StringString> loadNamesMapJava ()

Loads the currency names map. Generated implementations override this method.

protected JavaScriptObject loadNamesMapNative ()

Loads the currency names map from a JS object literal. Generated implementations override this method.

protected static final JavaScriptObject overrideMap (JavaScriptObject original, JavaScriptObject override)

Add all entries in override 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.