public
class
CurrencyAmount
extends Measure
| java.lang.Object | ||
| ↳ | android.icu.util.Measure | |
| ↳ | android.icu.util.CurrencyAmount | |
An amount of currency, consisting of a Number and a Currency. CurrencyAmount objects are immutable.
Public constructors | |
|---|---|
CurrencyAmount(Number number, Currency currency)
Constructs a new object given a number and a currency. |
|
CurrencyAmount(double number, Currency currency)
Constructs a new object given a double value and a currency. |
|
Public methods | |
|---|---|
Currency
|
getCurrency()
Returns the currency of this object. |
Inherited methods | |
|---|---|
android.icu.util.Measure
| |
java.lang.Object
| |
CurrencyAmount (Number number, Currency currency)
Constructs a new object given a number and a currency.
| Parameters | |
|---|---|
number |
Number:
the number |
currency |
Currency:
the currency
|
CurrencyAmount (double number,
Currency currency)
Constructs a new object given a double value and a currency.
| Parameters | |
|---|---|
number |
double:
a double value |
currency |
Currency:
the currency
|
Currency getCurrency ()
Returns the currency of this object.
| Returns | |
|---|---|
Currency |
this object's Currency |