Class CurrencyMetaInfo.CurrencyInfo
java.lang.Object
com.ibm.icu.text.CurrencyMetaInfo.CurrencyInfo
- Enclosing class:
CurrencyMetaInfo
Represents a complete currency info record listing the region, currency, from and to dates,
and priority. Use
CurrencyMetaInfo.currencyInfo(CurrencyFilter) for a list of info
objects matching the filter.- Status:
- Stable ICU 4.4.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe three-letter ISO currency code.final longDate on which the currency was first officially used in the region.final intPreference order of currencies being used at the same time in the region.final StringRegion code where currency is used.final longDate at which the currency stopped being officially used in the region. -
Constructor Summary
ConstructorsConstructorDescriptionCurrencyInfo(String region, String code, long from, long to, int priority) Deprecated.CurrencyInfo(String region, String code, long from, long to, int priority, boolean tender) Deprecated.This API is ICU internal only. -
Method Summary
-
Field Details
-
region
-
code
-
from
public final long fromDate on which the currency was first officially used in the region. This is midnight at the start of the first day on which the currency was used, GMT. If there is no date, this is Long.MIN_VALUE;- Status:
- Stable ICU 4.4.
-
to
public final long toDate at which the currency stopped being officially used in the region. This is one millisecond before midnight at the end of the last day on which the currency was used, GMT. If there is no date, this is Long.MAX_VALUE.- Status:
- Stable ICU 4.4.
-
priority
public final int priorityPreference order of currencies being used at the same time in the region. Lower values are preferred (generally, this is a transition from an older to a newer currency). Priorities within a single country are unique.- Status:
- Stable ICU 49.
-
-
Constructor Details
-
CurrencyInfo
Deprecated.ICU 51 UseCurrencyMetaInfo.currencyInfo(CurrencyFilter)instead. -
CurrencyInfo
@Deprecated public CurrencyInfo(String region, String code, long from, long to, int priority, boolean tender) Deprecated.This API is ICU internal only.Constructs a currency info.- Status:
- Internal. This API is ICU internal only.
-
-
Method Details
-
toString
-
isTender
public boolean isTender()Determine whether or not this currency was once used, is used, or will be used as tender in this region.- Status:
- Stable ICU 51.
-
CurrencyMetaInfo.currencyInfo(CurrencyFilter)instead.