Package com.ibm.icu.impl
Class ICUCurrencyMetaInfo
java.lang.Object
com.ibm.icu.text.CurrencyMetaInfo
com.ibm.icu.impl.ICUCurrencyMetaInfo
ICU's currency meta info data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interface
private static class
private static class
private static class
private static class
Nested classes/interfaces inherited from class com.ibm.icu.text.CurrencyMetaInfo
CurrencyMetaInfo.CurrencyDigits, CurrencyMetaInfo.CurrencyFilter, CurrencyMetaInfo.CurrencyInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private ICUResourceBundle
private static final int
private static final long
private static final int
private ICUResourceBundle
private static final int
Fields inherited from class com.ibm.icu.text.CurrencyMetaInfo
defaultDigits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <T> 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) Returns the list of currency codes matching the provided filter.currencyDigits
(String isoCode) Returns the CurrencyDigits for the currency code.currencyDigits
(String isoCode, Currency.CurrencyUsage currencyPurpose) Returns the CurrencyDigits for the currency code with Context Usage.Returns the list of CurrencyInfos matching the provided filter.private long
getDate
(ICUResourceBundle b, long defaultValue, boolean endOfDay) Returns the list of region codes matching the provided filter.Methods inherited from class com.ibm.icu.text.CurrencyMetaInfo
getInstance, getInstance, hasData
-
Field Details
-
regionInfo
-
digitInfo
-
MASK
private static final long MASK- See Also:
-
Region
private static final int Region- See Also:
-
Currency
private static final int Currency- See Also:
-
Date
private static final int Date- See Also:
-
Tender
private static final int Tender- See Also:
-
Everything
private static final int Everything- See Also:
-
-
Constructor Details
-
ICUCurrencyMetaInfo
public ICUCurrencyMetaInfo()
-
-
Method Details
-
currencyInfo
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
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
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
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(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> 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
-