Package | Description |
---|---|
com.ibm.icu.number |
Library for localized number formatting introduced in ICU 60; for usage, see com.ibm.icu.number.NumberFormatter.
|
com.ibm.icu.text |
Extensions and enhancements to java.text to support unicode transforms, UnicodeSet, surrogate char utilities, UCA collation, normalization, break iteration (rule and dictionary based), enhanced number format, international string searching, and arabic shaping.
|
com.ibm.icu.util |
International calendars and other utility classes.
|
Modifier and Type | Method and Description |
---|---|
Precision |
CurrencyPrecision.withCurrency(Currency currency)
Associates a currency with this rounding strategy.
|
Modifier and Type | Method and Description |
---|---|
Currency |
NumberFormat.getCurrency()
Returns the Currency object used to display currency
amounts.
|
Currency |
DecimalFormatSymbols.getCurrency()
Returns the currency symbol, for
DecimalFormatSymbols.getCurrency() API
compatibility only. |
Currency |
DecimalFormat.getCurrency()
Returns the currency used to display currency amounts.
|
protected Currency |
NumberFormat.getEffectiveCurrency()
Deprecated.
This API is ICU internal only.
|
Modifier and Type | Method and Description |
---|---|
void |
NumberFormat.setCurrency(Currency theCurrency)
Sets the Currency object used to display currency
amounts.
|
void |
DecimalFormatSymbols.setCurrency(Currency currency)
Sets the currency.
|
void |
DecimalFormat.setCurrency(Currency currency)
Sets the currency to be used when formatting numbers.
|
Modifier and Type | Method and Description |
---|---|
static Currency |
Currency.fromJavaCurrency(Currency currency)
Returns a Currency object based on the currency represented by the given java.util.Currency.
|
Currency |
GlobalizationPreferences.getCurrency()
Get a copy of the currency computed according to the settings.
|
Currency |
CurrencyAmount.getCurrency()
Returns the currency of this object.
|
static Currency |
Currency.getInstance(Locale locale)
Returns a currency object for the default currency in the given
locale.
|
static Currency |
Currency.getInstance(String theISOCode)
Returns a currency object given an ISO 4217 3-letter code.
|
static Currency |
Currency.getInstance(ULocale locale)
Returns a currency object for the default currency in the given
locale.
|
protected Currency |
GlobalizationPreferences.guessCurrency()
This function can be overridden by subclasses to use different heuristics
|
Modifier and Type | Method and Description |
---|---|
static Set<Currency> |
Currency.getAvailableCurrencies()
Returns the set of available currencies.
|
Modifier and Type | Method and Description |
---|---|
static Object |
Currency.registerInstance(Currency currency,
ULocale locale)
Registers a new currency for the provided locale.
|
GlobalizationPreferences |
GlobalizationPreferences.setCurrency(Currency currency)
Sets the currency code.
|
Constructor and Description |
---|
CurrencyAmount(double number,
Currency currency)
Constructs a new object given a double value and a currency.
|
CurrencyAmount(Number number,
Currency currency)
Constructs a new object given a number and a currency.
|
Copyright © 2016 Unicode, Inc. and others.