com.google.gwt.i18n.client
Class CurrencyList

java.lang.Object
  extended by com.google.gwt.i18n.client.CurrencyList
All Implemented Interfaces:
java.lang.Iterable<CurrencyData>

public class CurrencyList
extends java.lang.Object
implements java.lang.Iterable<CurrencyData>

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


Constructor Summary
CurrencyList()
           
 
Method Summary
static CurrencyList get()
          Return the singleton instance of CurrencyList.
 CurrencyData getDefault()
          Return the default currency data for this locale.
 java.util.Iterator<CurrencyData> iterator()
          Returns an iterator for the list of currencies.
 java.util.Iterator<CurrencyData> iterator(boolean includeDeprecated)
          Returns an iterator for the list of currencies, optionally including deprecated ones.
 CurrencyData lookup(java.lang.String currencyCode)
          Lookup a currency based on the ISO4217 currency code.
 java.lang.String lookupName(java.lang.String currencyCode)
          Lookup a currency name based on the ISO4217 currency code.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrencyList

public CurrencyList()
Method Detail

get

public static CurrencyList get()
Return the singleton instance of CurrencyList.


getDefault

public CurrencyData getDefault()
Return the default currency data for this locale. Generated implementations override this method.


iterator

public final java.util.Iterator<CurrencyData> iterator()
Returns an iterator for the list of currencies. Deprecated currencies will not be included.

Specified by:
iterator in interface java.lang.Iterable<CurrencyData>

iterator

public final java.util.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

lookup

public final CurrencyData lookup(java.lang.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

lookupName

public final java.lang.String lookupName(java.lang.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