Package com.ibm.icu.impl
Class ICUCurrencyMetaInfo
- java.lang.Object
-
- com.ibm.icu.text.CurrencyMetaInfo
-
- com.ibm.icu.impl.ICUCurrencyMetaInfo
-
public class ICUCurrencyMetaInfo extends CurrencyMetaInfo
ICU's currency meta info data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static interface
ICUCurrencyMetaInfo.Collector<T>
private static class
ICUCurrencyMetaInfo.CurrencyCollector
private static class
ICUCurrencyMetaInfo.InfoCollector
private static class
ICUCurrencyMetaInfo.RegionCollector
private static class
ICUCurrencyMetaInfo.UniqueList<T>
-
Nested classes/interfaces inherited from class com.ibm.icu.text.CurrencyMetaInfo
CurrencyMetaInfo.CurrencyDigits, CurrencyMetaInfo.CurrencyFilter, CurrencyMetaInfo.CurrencyInfo
-
-
Field Summary
Fields Modifier and Type Field Description private static int
Currency
private static int
Date
private ICUResourceBundle
digitInfo
private static int
Everything
private static long
MASK
private static int
Region
private ICUResourceBundle
regionInfo
private static int
Tender
-
Fields inherited from class com.ibm.icu.text.CurrencyMetaInfo
defaultDigits
-
-
Constructor Summary
Constructors Constructor Description ICUCurrencyMetaInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private <T> java.util.List<T>
collect(ICUCurrencyMetaInfo.Collector<T> collector, CurrencyMetaInfo.CurrencyFilter filter)
private <T> void
collectRegion(ICUCurrencyMetaInfo.Collector<T> collector, CurrencyMetaInfo.CurrencyFilter filter, int needed, ICUResourceBundle b)
java.util.List<java.lang.String>
currencies(CurrencyMetaInfo.CurrencyFilter filter)
Returns the list of currency codes matching the provided filter.CurrencyMetaInfo.CurrencyDigits
currencyDigits(java.lang.String isoCode)
Returns the CurrencyDigits for the currency code.CurrencyMetaInfo.CurrencyDigits
currencyDigits(java.lang.String isoCode, Currency.CurrencyUsage currencyPurpose)
Returns the CurrencyDigits for the currency code with Context Usage.java.util.List<CurrencyMetaInfo.CurrencyInfo>
currencyInfo(CurrencyMetaInfo.CurrencyFilter filter)
Returns the list of CurrencyInfos matching the provided filter.private long
getDate(ICUResourceBundle b, long defaultValue, boolean endOfDay)
java.util.List<java.lang.String>
regions(CurrencyMetaInfo.CurrencyFilter filter)
Returns the list of region codes matching the provided filter.-
Methods inherited from class com.ibm.icu.text.CurrencyMetaInfo
getInstance, getInstance, hasData
-
-
-
-
Field Detail
-
regionInfo
private ICUResourceBundle regionInfo
-
digitInfo
private ICUResourceBundle digitInfo
-
MASK
private static final long MASK
- See Also:
- Constant Field Values
-
Region
private static final int Region
- See Also:
- Constant Field Values
-
Currency
private static final int Currency
- See Also:
- Constant Field Values
-
Date
private static final int Date
- See Also:
- Constant Field Values
-
Tender
private static final int Tender
- See Also:
- Constant Field Values
-
Everything
private static final int Everything
- See Also:
- Constant Field Values
-
-
Method Detail
-
currencyInfo
public java.util.List<CurrencyMetaInfo.CurrencyInfo> currencyInfo(CurrencyMetaInfo.CurrencyFilter filter)
Description copied from class:CurrencyMetaInfo
Returns the list of CurrencyInfos matching the provided filter. Results are ordered by country code, then by highest to lowest priority (0 is highest). The returned list is unmodifiable.- Overrides:
currencyInfo
in classCurrencyMetaInfo
- Parameters:
filter
- the filter to control which currency info to return- Returns:
- the matching information
-
currencies
public java.util.List<java.lang.String> currencies(CurrencyMetaInfo.CurrencyFilter filter)
Description copied from class:CurrencyMetaInfo
Returns the list of currency codes matching the provided filter. Results are ordered as inCurrencyMetaInfo.currencyInfo(CurrencyFilter)
. The returned list is unmodifiable.- Overrides:
currencies
in classCurrencyMetaInfo
- Parameters:
filter
- the filter to control which currencies to return. If filter is null, returns all currencies for which information is available.- Returns:
- the matching currency codes
-
regions
public java.util.List<java.lang.String> regions(CurrencyMetaInfo.CurrencyFilter filter)
Description copied from class:CurrencyMetaInfo
Returns the list of region codes matching the provided filter. Results are ordered as inCurrencyMetaInfo.currencyInfo(CurrencyFilter)
. The returned list is unmodifiable.- Overrides:
regions
in classCurrencyMetaInfo
- Parameters:
filter
- the filter to control which regions to return. If filter is null, returns all regions for which information is available.- Returns:
- the matching region codes
-
currencyDigits
public CurrencyMetaInfo.CurrencyDigits currencyDigits(java.lang.String isoCode)
Description copied from class:CurrencyMetaInfo
Returns the CurrencyDigits for the currency code. This is equivalent to currencyDigits(isoCode, CurrencyUsage.STANDARD);- Overrides:
currencyDigits
in classCurrencyMetaInfo
- Parameters:
isoCode
- the currency code- Returns:
- the CurrencyDigits
-
currencyDigits
public CurrencyMetaInfo.CurrencyDigits currencyDigits(java.lang.String isoCode, Currency.CurrencyUsage currencyPurpose)
Description copied from class:CurrencyMetaInfo
Returns the CurrencyDigits for the currency code with Context Usage.- Overrides:
currencyDigits
in classCurrencyMetaInfo
- Parameters:
isoCode
- the currency codecurrencyPurpose
- the currency usage- Returns:
- the CurrencyDigits
-
collect
private <T> java.util.List<T> collect(ICUCurrencyMetaInfo.Collector<T> collector, CurrencyMetaInfo.CurrencyFilter filter)
-
collectRegion
private <T> void collectRegion(ICUCurrencyMetaInfo.Collector<T> collector, CurrencyMetaInfo.CurrencyFilter filter, int needed, ICUResourceBundle b)
-
getDate
private long getDate(ICUResourceBundle b, long defaultValue, boolean endOfDay)
-
-