| Modifier and Type | Class and Description |
|---|---|
| public static class | CurrencyMetaInfo.CurrencyDigits
Represents the raw information about fraction digits and rounding increment. |
| public static class | CurrencyMetaInfo.CurrencyFilter
A filter used to select which currency info is returned. |
| public static class | CurrencyMetaInfo.CurrencyInfo
Represents a complete currency info record listing the region, currency, from and to dates, and priority. |
| Modifier and Type | Field and Description |
|---|---|
| protected static final CurrencyMetaInfo. | defaultDigits
Deprecated
This API is ICU internal only.
|
| private static final boolean | |
| private static final CurrencyMetaInfo |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: the matching currency codesthe filter to control which currencies to return. If filter is null,
returns all currencies for which information is available. filterReturns the list of currency codes matching the provided filter. |
| public CurrencyMetaInfo. | Returns: the CurrencyDigitsthe currency code isoCode)Returns the CurrencyDigits for the currency code. |
| public CurrencyMetaInfo. | Returns: the CurrencyDigitsthe currency code isoCode, Currency.the currency usage currencyUsageReturns the CurrencyDigits for the currency code with Context Usage. |
| public List | Returns: the matching informationthe filter to control which currency info to return filterReturns the list of CurrencyInfos matching the provided filter. |
| private static String | |
| private static String | |
| public static CurrencyMetaInfo | |
| public static CurrencyMetaInfo | Returns: the meta info, or nulltrue if no substitute data should be used noSubstitute)Returns the unique instance of the currency meta info, or null if noSubstitute is true and there is no data to support this API. |
| public static boolean | Returns: true if there is actual data
Deprecated
This API is ICU internal only.
Returns true if there is data for the currency meta info.
|
| public List | Returns: the matching region codesthe filter to control which regions to return. If filter is null,
returns all regions for which information is available. filterReturns the list of region codes matching the provided filter. |
| defaultDigits | back to summary |
|---|---|
| protected static final CurrencyMetaInfo. Deprecated This API is ICU internal only.
| |
| hasData | back to summary |
|---|---|
| private static final boolean hasData | |
| impl | back to summary |
|---|---|
| private static final CurrencyMetaInfo impl | |
| CurrencyMetaInfo | back to summary |
|---|---|
| protected CurrencyMetaInfo()
Deprecated This API is ICU internal only. Subclass constructor.
| |
| currencies | back to summary |
|---|---|
| public List Returns the list of currency codes matching the provided filter.
Results are ordered as in
| |
| currencyDigits | back to summary |
|---|---|
| public CurrencyMetaInfo. Returns the CurrencyDigits for the currency code. This is equivalent to currencyDigits(isoCode, CurrencyUsage.STANDARD);
| |
| currencyDigits | back to summary |
|---|---|
| public CurrencyMetaInfo. Returns the CurrencyDigits for the currency code with Context Usage.
| |
| currencyInfo | back to summary |
|---|---|
| public List 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.
| |
| dateString | back to summary |
|---|---|
| private static String dateString(long date) | |
| debugString | back to summary |
|---|---|
| private static String debugString(Object o) | |
| getInstance | back to summary |
|---|---|
| public static CurrencyMetaInfo getInstance() Returns the unique instance of the currency meta info.
| |
| getInstance | back to summary |
|---|---|
| public static CurrencyMetaInfo getInstance(boolean noSubstitute) Returns the unique instance of the currency meta info, or null if noSubstitute is true and there is no data to support this API.
| |
| hasData | back to summary |
|---|---|
| public static boolean hasData()
Deprecated This API is ICU internal only. Returns true if there is data for the currency meta info.
| |
| regions | back to summary |
|---|---|
| public List Returns the list of region codes matching the provided filter.
Results are ordered as in
| |
| Modifier and Type | Field and Description |
|---|---|
| public final int | fractionDigits
Number of fraction digits used to display this currency. |
| public final int | roundingIncrement
Rounding increment used when displaying this currency. |
| Access | Constructor and Description |
|---|---|
| public | CurrencyDigits(int
the fraction digits fractionDigits, int the rounding increment roundingIncrement)Constructor for CurrencyDigits. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: A string representing the currency digits.Overrides java. |
| fractionDigits | back to summary |
|---|---|
| public final int fractionDigits Number of fraction digits used to display this currency.
| |
| roundingIncrement | back to summary |
|---|---|
| public final int roundingIncrement Rounding increment used when displaying this currency.
| |
| CurrencyDigits | back to summary |
|---|---|
| public CurrencyDigits(int fractionDigits, int roundingIncrement) Constructor for CurrencyDigits.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representing the currency digits, for debugging. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CurrencyMetaInfo. | |
| public final String | currency
The currency to filter on. |
| public final long | from
The from date to filter on (as milliseconds). |
| public final String | region
The region to filter on. |
| public final boolean | tenderOnly
true if we are filtering only for currencies used as legal tender. |
| public final long | to
The to date to filter on (as milliseconds). |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CurrencyMetaInfo. | |
| public boolean | equals(Object
the reference object with which to compare. rhs)Overrides java. |
| public boolean | Returns: true if the filters are equalthe currency filter to compare to rhsType-safe override of |
| private static boolean | |
| public int | |
| public static CurrencyMetaInfo. | |
| public static CurrencyMetaInfo. | Returns: a filterthe currency code currency)Returns a filter that accepts the given currency. |
| public static CurrencyMetaInfo. | |
| public static CurrencyMetaInfo. | onDate(long
the date as milliseconds after Jan 1, 1970 date)Returns a filter that accepts all currencies in use on the given date. |
| public static CurrencyMetaInfo. | Returns: a filterdate on or after a currency must have been in use from, Date date on or before which a currency must have been in use,
or if equal to from, the date on which a currency must have been in use to)Returns a filter that accepts all currencies that were in use at some point between the given dates, or if dates are equal, currencies in use on that date. |
| public static CurrencyMetaInfo. | onDateRange(long
The date on or after a currency must have been in use.
Measured in milliseconds since Jan 1, 1970 GMT. from, long The date on or before which a currency must have been in use.
Measured in milliseconds since Jan 1, 1970 GMT. to)Returns a filter that accepts all currencies that were in use at some point between the given dates, or if dates are equal, currencies in use on that date. |
| public static CurrencyMetaInfo. | |
| public static CurrencyMetaInfo. | onTender()
Returns a CurrencyFilter for finding currencies that were either once used, are used, or will be used as tender. |
| public String | Returns: A string representing the filter.Overrides java. |
| public CurrencyMetaInfo. | Returns: the filterthe currency code currency)Returns a copy of this filter, with the specified currency. |
| public CurrencyMetaInfo. | |
| public CurrencyMetaInfo. | withDate(long
the date as milliseconds after Jan 1, 1970 date)Returns a copy of this filter that accepts all currencies in use on the given date. |
| public CurrencyMetaInfo. | Returns: the filterdate on or after which the currency must have been in use from, Date date on or before which the currency must have been in use to)Returns a copy of this filter, with from and to set to the given dates. |
| public CurrencyMetaInfo. | withDateRange(long
The date on or after a currency must have been in use.
Measured in milliseconds since Jan 1, 1970 GMT. from, long The date on or before which a currency must have been in use.
Measured in milliseconds since Jan 1, 1970 GMT. to)Returns a copy of this filter that accepts all currencies that were in use at some point between the given dates, or if dates are equal, currencies in use on that date. |
| public CurrencyMetaInfo. | Returns: the filterthe region code region)Returns a copy of this filter, with the specified region. |
| public CurrencyMetaInfo. | withTender()
Returns a copy of this filter that filters for currencies that were either once used, are used, or will be used as tender. |
| ALL | back to summary |
|---|---|
| private static final CurrencyMetaInfo. | |
| currency | back to summary |
|---|---|
| public final String currency The currency to filter on. If null, accepts any currency.
| |
| from | back to summary |
|---|---|
| public final long from The from date to filter on (as milliseconds). Accepts any currency on or after this date.
| |
| region | back to summary |
|---|---|
| public final String region The region to filter on. If null, accepts any region.
| |
| tenderOnly | back to summary |
|---|---|
| public final boolean tenderOnly
Deprecated This API is ICU internal only. true if we are filtering only for currencies used as legal tender.
| |
| to | back to summary |
|---|---|
| public final long to The to date to filter on (as milliseconds). Accepts any currency on or before this date.
| |
| CurrencyFilter | back to summary |
|---|---|
| private CurrencyFilter(String region, String currency, long from, long to, boolean tenderOnly) | |
| all | back to summary |
|---|---|
| public static CurrencyMetaInfo. Returns a filter that accepts all currency data.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object rhs) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| equals | back to summary |
|---|---|
| public boolean equals(CurrencyMetaInfo. Type-safe override of
| |
| equals | back to summary |
|---|---|
| private static boolean equals(String lhs, String rhs) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| now | back to summary |
|---|---|
| public static CurrencyMetaInfo. Returns a filter that accepts all currencies in use as of the current date.
| |
| onCurrency | back to summary |
|---|---|
| public static CurrencyMetaInfo. Returns a filter that accepts the given currency.
| |
| onDate | back to summary |
|---|---|
| public static CurrencyMetaInfo. Returns a filter that accepts all currencies in use on the given date.
| |
| onDate | back to summary |
|---|---|
| public static CurrencyMetaInfo. Returns a filter that accepts all currencies in use on the given date.
| |
| onDateRange | back to summary |
|---|---|
| public static CurrencyMetaInfo. Returns a filter that accepts all currencies that were in use at some point between the given dates, or if dates are equal, currencies in use on that date.
| |
| onDateRange | back to summary |
|---|---|
| public static CurrencyMetaInfo. Returns a filter that accepts all currencies that were in use at some point between the given dates, or if dates are equal, currencies in use on that date.
| |
| onRegion | back to summary |
|---|---|
| public static CurrencyMetaInfo. Returns a filter that accepts all currencies ever used in the given region.
| |
| onTender | back to summary |
|---|---|
| public static CurrencyMetaInfo. Returns a CurrencyFilter for finding currencies that were either once used, are used, or will be used as tender.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representing the filter, for debugging. | |
| withCurrency | back to summary |
|---|---|
| public CurrencyMetaInfo. Returns a copy of this filter, with the specified currency. Currency can be null to indicate no filter on currency.
| |
| withDate | back to summary |
|---|---|
| public CurrencyMetaInfo. Returns a copy of this filter, with from and to set to the given date.
| |
| withDate | back to summary |
|---|---|
| public CurrencyMetaInfo. Returns a copy of this filter that accepts all currencies in use on the given date.
| |
| withDateRange | back to summary |
|---|---|
| public CurrencyMetaInfo. Returns a copy of this filter, with from and to set to the given dates.
| |
| withDateRange | back to summary |
|---|---|
| public CurrencyMetaInfo. Returns a copy of this filter that accepts all currencies that were in use at some point between the given dates, or if dates are equal, currencies in use on that date.
| |
| withRegion | back to summary |
|---|---|
| public CurrencyMetaInfo. Returns a copy of this filter, with the specified region. Region can be null to indicate no filter on region.
| |
| withTender | back to summary |
|---|---|
| public CurrencyMetaInfo. Returns a copy of this filter that filters for currencies that were either once used, are used, or will be used as tender.
| |
CurrencyMetaInfo#currencyInfo(CurrencyFilter)
for a list of info objects matching the filter.
| Modifier and Type | Field and Description |
|---|---|
| public final String | code
The three-letter ISO currency code. |
| public final long | from
Date on which the currency was first officially used in the region. |
| public final int | priority
Preference order of currencies being used at the same time in the region. |
| public final String | region
Region code where currency is used. |
| private final boolean | |
| public final long | to
Date at which the currency stopped being officially used in the region. |
| Access | Constructor and Description |
|---|---|
| public | CurrencyInfo(String region, String code, long from, long to, int priority)
Deprecated
ICU 51 Use
CurrencyMetaInfo#currencyInfo(CurrencyFilter) instead.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isTender()
Determine whether or not this currency was once used, is used, or will be used as tender in this region. |
| public String | Returns: A string representation of this object.Overrides java. |
| code | back to summary |
|---|---|
| public final String code The three-letter ISO currency code.
| |
| from | back to summary |
|---|---|
| public final long from Date 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;
| |
| priority | back to summary |
|---|---|
| public final int priority Preference 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.
| |
| region | back to summary |
|---|---|
| public final String region Region code where currency is used.
| |
| tender | back to summary |
|---|---|
| private final boolean tender | |
| to | back to summary |
|---|---|
| public final long to Date 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.
| |
| CurrencyInfo | back to summary |
|---|---|
| public CurrencyInfo(String region, String code, long from, long to, int priority)
Deprecated ICU 51 Use
| |
| CurrencyInfo | back to summary |
|---|---|
| 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.
| |
| isTender | back to summary |
|---|---|
| public boolean isTender() Determine whether or not this currency was once used, is used, or will be used as tender in this region.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this object, useful for debugging. | |