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 interfaceprivate static classprivate static classprivate static classprivate static classNested classes/interfaces inherited from class com.ibm.icu.text.CurrencyMetaInfo
CurrencyMetaInfo.CurrencyDigits, CurrencyMetaInfo.CurrencyFilter, CurrencyMetaInfo.CurrencyInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate ICUResourceBundleprivate static final intprivate static final longprivate static final intprivate ICUResourceBundleprivate static final intFields 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> voidcollectRegion(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 longgetDate(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:CurrencyMetaInfoReturns 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:
currencyInfoin classCurrencyMetaInfo- Parameters:
filter- the filter to control which currency info to return- Returns:
- the matching information
-
currencies
Description copied from class:CurrencyMetaInfoReturns the list of currency codes matching the provided filter. Results are ordered as inCurrencyMetaInfo.currencyInfo(CurrencyFilter). The returned list is unmodifiable.- Overrides:
currenciesin 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:CurrencyMetaInfoReturns the list of region codes matching the provided filter. Results are ordered as inCurrencyMetaInfo.currencyInfo(CurrencyFilter). The returned list is unmodifiable.- Overrides:
regionsin 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:CurrencyMetaInfoReturns the CurrencyDigits for the currency code. This is equivalent to currencyDigits(isoCode, CurrencyUsage.STANDARD);- Overrides:
currencyDigitsin classCurrencyMetaInfo- Parameters:
isoCode- the currency code- Returns:
- the CurrencyDigits
-
currencyDigits
public CurrencyMetaInfo.CurrencyDigits currencyDigits(String isoCode, Currency.CurrencyUsage currencyPurpose) Description copied from class:CurrencyMetaInfoReturns the CurrencyDigits for the currency code with Context Usage.- Overrides:
currencyDigitsin 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
-