Package com.ibm.icu.impl
Class ICUCurrencyMetaInfo.CurrencyCollector
- java.lang.Object
-
- com.ibm.icu.impl.ICUCurrencyMetaInfo.CurrencyCollector
-
- All Implemented Interfaces:
ICUCurrencyMetaInfo.Collector<java.lang.String>
- Enclosing class:
- ICUCurrencyMetaInfo
private static class ICUCurrencyMetaInfo.CurrencyCollector extends java.lang.Object implements ICUCurrencyMetaInfo.Collector<java.lang.String>
-
-
Field Summary
Fields Modifier and Type Field Description private ICUCurrencyMetaInfo.UniqueList<java.lang.String>
result
-
Constructor Summary
Constructors Modifier Constructor Description private
CurrencyCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collect(java.lang.String region, java.lang.String currency, long from, long to, int priority, boolean tender)
Called with data passed by filter.int
collects()
A bitmask of Region/Currency/Date indicating which features we collect.java.util.List<java.lang.String>
getList()
Return the list of unique items in the order in which we encountered them for the first time.
-
-
-
Field Detail
-
result
private final ICUCurrencyMetaInfo.UniqueList<java.lang.String> result
-
-
Method Detail
-
collect
public void collect(java.lang.String region, java.lang.String currency, long from, long to, int priority, boolean tender)
Description copied from interface:ICUCurrencyMetaInfo.Collector
Called with data passed by filter. Values not collected by filter should be ignored.- Specified by:
collect
in interfaceICUCurrencyMetaInfo.Collector<java.lang.String>
- Parameters:
region
- the region code (null if ignored)currency
- the currency code (null if ignored)from
- start time (0 if ignored)to
- end time (0 if ignored)priority
- priority (-1 if ignored)tender
- true if currency is legal tender.
-
collects
public int collects()
Description copied from interface:ICUCurrencyMetaInfo.Collector
A bitmask of Region/Currency/Date indicating which features we collect.- Specified by:
collects
in interfaceICUCurrencyMetaInfo.Collector<java.lang.String>
- Returns:
- the bitmask
-
getList
public java.util.List<java.lang.String> getList()
Description copied from interface:ICUCurrencyMetaInfo.Collector
Return the list of unique items in the order in which we encountered them for the first time. The returned list is unmodifiable.- Specified by:
getList
in interfaceICUCurrencyMetaInfo.Collector<java.lang.String>
- Returns:
- the list
-
-