Top Description Inners Fields Constructors Methods
com.ibm.icu.impl

public Class ICUCurrencyMetaInfo

extends CurrencyMetaInfo
Class Inheritance
Imports
java.util.ArrayList, .Collections, .HashSet, .List, .Set, com.ibm.icu.text.CurrencyMetaInfo, com.ibm.icu.util.Currency.CurrencyUsage

ICU's currency meta info data.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static interface
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private 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
Inherited from com.ibm.icu.text.CurrencyMetaInfo:
defaultDigits

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private <T> List<T>
private <T> void
public List<String>
currencies(CurrencyMetaInfo.CurrencyFilter
the filter to control which currencies to return. If filter is null, returns all currencies for which information is available.
filter
)

Overrides com.ibm.icu.text.CurrencyMetaInfo.currencies.

Returns the list of currency codes matching the provided filter.
public CurrencyMetaInfo.CurrencyDigits
currencyDigits(String
the currency code
isoCode
)

Overrides com.ibm.icu.text.CurrencyMetaInfo.currencyDigits.

Returns the CurrencyDigits for the currency code.
public CurrencyMetaInfo.CurrencyDigits
currencyDigits(String
the currency code
isoCode
,
Currency.CurrencyUsage
the currency usage
currencyPurpose
)

Overrides com.ibm.icu.text.CurrencyMetaInfo.currencyDigits.

Returns the CurrencyDigits for the currency code with Context Usage.
public List<CurrencyMetaInfo.CurrencyInfo>
currencyInfo(CurrencyMetaInfo.CurrencyFilter
the filter to control which currency info to return
filter
)

Overrides com.ibm.icu.text.CurrencyMetaInfo.currencyInfo.

Returns the list of CurrencyInfos matching the provided filter.
private long
getDate(ICUResourceBundle b, long defaultValue, boolean endOfDay)

public List<String>
regions(CurrencyMetaInfo.CurrencyFilter
the filter to control which regions to return. If filter is null, returns all regions for which information is available.
filter
)

Overrides com.ibm.icu.text.CurrencyMetaInfo.regions.

Returns the list of region codes matching the provided filter.
Inherited from com.ibm.icu.text.CurrencyMetaInfo:
getInstancegetInstancehasData

Field Detail

Currencyback to summary
private static final int Currency
Dateback to summary
private static final int Date
digitInfoback to summary
private ICUResourceBundle digitInfo
Everythingback to summary
private static final int Everything
MASKback to summary
private static final long MASK
Regionback to summary
private static final int Region
regionInfoback to summary
private ICUResourceBundle regionInfo
Tenderback to summary
private static final int Tender

Constructor Detail

ICUCurrencyMetaInfoback to summary
public ICUCurrencyMetaInfo()

Method Detail

collectback to summary
private <T> List<T> collect(ICUCurrencyMetaInfo.Collector<T> collector, CurrencyMetaInfo.CurrencyFilter filter)
collectRegionback to summary
private <T> void collectRegion(ICUCurrencyMetaInfo.Collector<T> collector, CurrencyMetaInfo.CurrencyFilter filter, int needed, ICUResourceBundle b)
currenciesback to summary
public List<String> currencies(CurrencyMetaInfo.CurrencyFilter filter)

Overrides com.ibm.icu.text.CurrencyMetaInfo.currencies.

Doc from com.ibm.icu.text.CurrencyMetaInfo.currencies.

Returns the list of currency codes matching the provided filter. Results are ordered as in currencyInfo(CurrencyFilter). The returned list is unmodifiable.

Parameters
filter:CurrencyMetaInfo.CurrencyFilter

the filter to control which currencies to return. If filter is null, returns all currencies for which information is available.

Returns:List<String>

the matching currency codes

Annotations
@Override
currencyDigitsback to summary
public CurrencyMetaInfo.CurrencyDigits currencyDigits(String isoCode)

Overrides com.ibm.icu.text.CurrencyMetaInfo.currencyDigits.

Doc from com.ibm.icu.text.CurrencyMetaInfo.currencyDigits.

Returns the CurrencyDigits for the currency code. This is equivalent to currencyDigits(isoCode, CurrencyUsage.STANDARD);

Parameters
isoCode:String

the currency code

Returns:CurrencyMetaInfo.CurrencyDigits

the CurrencyDigits

Annotations
@Override
currencyDigitsback to summary
public CurrencyMetaInfo.CurrencyDigits currencyDigits(String isoCode, Currency.CurrencyUsage currencyPurpose)

Overrides com.ibm.icu.text.CurrencyMetaInfo.currencyDigits.

Doc from com.ibm.icu.text.CurrencyMetaInfo.currencyDigits.

Returns the CurrencyDigits for the currency code with Context Usage.

Parameters
isoCode:String

the currency code

currencyPurpose:Currency.CurrencyUsage

the currency usage

Returns:CurrencyMetaInfo.CurrencyDigits

the CurrencyDigits

Annotations
@Override
currencyInfoback to summary
public List<CurrencyMetaInfo.CurrencyInfo> currencyInfo(CurrencyMetaInfo.CurrencyFilter filter)

Overrides com.ibm.icu.text.CurrencyMetaInfo.currencyInfo.

Doc from com.ibm.icu.text.CurrencyMetaInfo.currencyInfo.

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.

Parameters
filter:CurrencyMetaInfo.CurrencyFilter

the filter to control which currency info to return

Returns:List<CurrencyMetaInfo.CurrencyInfo>

the matching information

Annotations
@Override
getDateback to summary
private long getDate(ICUResourceBundle b, long defaultValue, boolean endOfDay)
regionsback to summary
public List<String> regions(CurrencyMetaInfo.CurrencyFilter filter)

Overrides com.ibm.icu.text.CurrencyMetaInfo.regions.

Doc from com.ibm.icu.text.CurrencyMetaInfo.regions.

Returns the list of region codes matching the provided filter. Results are ordered as in currencyInfo(CurrencyFilter). The returned list is unmodifiable.

Parameters
filter:CurrencyMetaInfo.CurrencyFilter

the filter to control which regions to return. If filter is null, returns all regions for which information is available.

Returns:List<String>

the matching region codes

Annotations
@Override
com.ibm.icu.impl back to summary

private Interface ICUCurrencyMetaInfo.Collector<T>

Known Direct Implementers
com.ibm.icu.impl.ICUCurrencyMetaInfo.InfoCollector, com.ibm.icu.impl.ICUCurrencyMetaInfo.RegionCollector, com.ibm.icu.impl.ICUCurrencyMetaInfo.CurrencyCollector

Method Summary

Modifier and TypeMethod and Description
public void
collect(String
the region code (null if ignored)
region
,
String
the currency code (null if ignored)
currency
,
long
start time (0 if ignored)
from
,
long
end time (0 if ignored)
to
,
int
priority (-1 if ignored)
priority
,
boolean
true if currency is legal tender.
tender
)

Called with data passed by filter.

public int

Returns:

the bitmask
collects
()

A bitmask of Region/Currency/Date indicating which features we collect.

public List<T>

Returns:

the list
getList
()

Return the list of unique items in the order in which we encountered them for the first time.

Method Detail

collectback to summary
public void collect(String region, String currency, long from, long to, int priority, boolean tender)

Called with data passed by filter. Values not collected by filter should be ignored.

Parameters
region:String

the region code (null if ignored)

currency:String

the currency code (null if ignored)

from:long

start time (0 if ignored)

to:long

end time (0 if ignored)

priority:int

priority (-1 if ignored)

tender:boolean

true if currency is legal tender.

collectsback to summary
public int collects()

A bitmask of Region/Currency/Date indicating which features we collect.

Returns:int

the bitmask

getListback to summary
public List<T> getList()

Return the list of unique items in the order in which we encountered them for the first time. The returned list is unmodifiable.

Returns:List<T>

the list

com.ibm.icu.impl back to summary

private Class ICUCurrencyMetaInfo.CurrencyCollector

extends Object
implements ICUCurrencyMetaInfo.Collector<String>
Class Inheritance
All Implemented Interfaces
com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector

Field Summary

Modifier and TypeField and Description
private final ICUCurrencyMetaInfo.UniqueList<String>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
collect(String
the region code (null if ignored)
region
,
String
the currency code (null if ignored)
currency
,
long
start time (0 if ignored)
from
,
long
end time (0 if ignored)
to
,
int
priority (-1 if ignored)
priority
,
boolean
true if currency is legal tender.
tender
)

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collect.

Called with data passed by filter.
public int
collects()

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collects.

A bitmask of Region/Currency/Date indicating which features we collect.
public List<String>
getList()

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.getList.

Return the list of unique items in the order in which we encountered them for the first time.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

resultback to summary
private final ICUCurrencyMetaInfo.UniqueList<String> result

Constructor Detail

CurrencyCollectorback to summary
private CurrencyCollector()

Method Detail

collectback to summary
public void collect(String region, String currency, long from, long to, int priority, boolean tender)

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collect.

Doc from com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collect.

Called with data passed by filter. Values not collected by filter should be ignored.

Parameters
region:String

the region code (null if ignored)

currency:String

the currency code (null if ignored)

from:long

start time (0 if ignored)

to:long

end time (0 if ignored)

priority:int

priority (-1 if ignored)

tender:boolean

true if currency is legal tender.

Annotations
@Override
collectsback to summary
public int collects()

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collects.

Doc from com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collects.

A bitmask of Region/Currency/Date indicating which features we collect.

Returns:int

the bitmask

Annotations
@Override
getListback to summary
public List<String> getList()

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.getList.

Doc from com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.getList.

Return the list of unique items in the order in which we encountered them for the first time. The returned list is unmodifiable.

Returns:List<String>

the list

Annotations
@Override
com.ibm.icu.impl back to summary

private Class ICUCurrencyMetaInfo.InfoCollector

extends Object
implements ICUCurrencyMetaInfo.Collector<CurrencyMetaInfo.CurrencyInfo>
Class Inheritance
All Implemented Interfaces
com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector

Field Summary

Modifier and TypeField and Description
private List<CurrencyMetaInfo.CurrencyInfo>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
collect(String
the region code (null if ignored)
region
,
String
the currency code (null if ignored)
currency
,
long
start time (0 if ignored)
from
,
long
end time (0 if ignored)
to
,
int
priority (-1 if ignored)
priority
,
boolean
true if currency is legal tender.
tender
)

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collect.

Called with data passed by filter.
public int
collects()

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collects.

A bitmask of Region/Currency/Date indicating which features we collect.
public List<CurrencyMetaInfo.CurrencyInfo>
getList()

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.getList.

Return the list of unique items in the order in which we encountered them for the first time.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

resultback to summary
private List<CurrencyMetaInfo.CurrencyInfo> result

Constructor Detail

InfoCollectorback to summary
private InfoCollector()

Method Detail

collectback to summary
public void collect(String region, String currency, long from, long to, int priority, boolean tender)

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collect.

Doc from com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collect.

Called with data passed by filter. Values not collected by filter should be ignored.

Parameters
region:String

the region code (null if ignored)

currency:String

the currency code (null if ignored)

from:long

start time (0 if ignored)

to:long

end time (0 if ignored)

priority:int

priority (-1 if ignored)

tender:boolean

true if currency is legal tender.

Annotations
@Override
collectsback to summary
public int collects()

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collects.

Doc from com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collects.

A bitmask of Region/Currency/Date indicating which features we collect.

Returns:int

the bitmask

Annotations
@Override
getListback to summary
public List<CurrencyMetaInfo.CurrencyInfo> getList()

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.getList.

Doc from com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.getList.

Return the list of unique items in the order in which we encountered them for the first time. The returned list is unmodifiable.

Returns:List<CurrencyMetaInfo.CurrencyInfo>

the list

Annotations
@Override
com.ibm.icu.impl back to summary

private Class ICUCurrencyMetaInfo.RegionCollector

extends Object
implements ICUCurrencyMetaInfo.Collector<String>
Class Inheritance
All Implemented Interfaces
com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector

Field Summary

Modifier and TypeField and Description
private final ICUCurrencyMetaInfo.UniqueList<String>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
collect(String
the region code (null if ignored)
region
,
String
the currency code (null if ignored)
currency
,
long
start time (0 if ignored)
from
,
long
end time (0 if ignored)
to
,
int
priority (-1 if ignored)
priority
,
boolean
true if currency is legal tender.
tender
)

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collect.

Called with data passed by filter.
public int
collects()

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collects.

A bitmask of Region/Currency/Date indicating which features we collect.
public List<String>
getList()

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.getList.

Return the list of unique items in the order in which we encountered them for the first time.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

resultback to summary
private final ICUCurrencyMetaInfo.UniqueList<String> result

Constructor Detail

RegionCollectorback to summary
private RegionCollector()

Method Detail

collectback to summary
public void collect(String region, String currency, long from, long to, int priority, boolean tender)

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collect.

Doc from com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collect.

Called with data passed by filter. Values not collected by filter should be ignored.

Parameters
region:String

the region code (null if ignored)

currency:String

the currency code (null if ignored)

from:long

start time (0 if ignored)

to:long

end time (0 if ignored)

priority:int

priority (-1 if ignored)

tender:boolean

true if currency is legal tender.

Annotations
@Override
collectsback to summary
public int collects()

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collects.

Doc from com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.collects.

A bitmask of Region/Currency/Date indicating which features we collect.

Returns:int

the bitmask

Annotations
@Override
getListback to summary
public List<String> getList()

Implements com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.getList.

Doc from com.ibm.icu.impl.ICUCurrencyMetaInfo.Collector.getList.

Return the list of unique items in the order in which we encountered them for the first time. The returned list is unmodifiable.

Returns:List<String>

the list

Annotations
@Override
com.ibm.icu.impl back to summary

private Class ICUCurrencyMetaInfo.UniqueList<T>

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private List<T>
private Set<T>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv void
add(T value)

private static <T> ICUCurrencyMetaInfo.UniqueList<T>
pack-priv List<T>
list()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

listback to summary
private List<T> list
seenback to summary
private Set<T> seen

Constructor Detail

UniqueListback to summary
private UniqueList()

Method Detail

addback to summary
pack-priv void add(T value)
createback to summary
private static <T> ICUCurrencyMetaInfo.UniqueList<T> create()
listback to summary
pack-priv List<T> list()