Package com.ibm.icu.util
Class CurrencyAmount
java.lang.Object
com.ibm.icu.util.Measure
com.ibm.icu.util.CurrencyAmount
An amount of currency, consisting of a Number and a Currency.
CurrencyAmount objects are immutable.
- Author:
- Alan Liu
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCurrencyAmount
(double number, Currency currency) Constructs a new object given a double value and a currency.CurrencyAmount
(double number, Currency currency) Constructs a new object given a double value and a Java currency.CurrencyAmount
(Number number, Currency currency) Constructs a new object given a number and a currency.CurrencyAmount
(Number number, Currency currency) Constructs a new object given a number and a Java currency. -
Method Summary
-
Constructor Details
-
CurrencyAmount
Constructs a new object given a number and a currency.- Parameters:
number
- the numbercurrency
- the currency
-
CurrencyAmount
Constructs a new object given a double value and a currency.- Parameters:
number
- a double valuecurrency
- the currency
-
CurrencyAmount
Constructs a new object given a number and a Java currency.- Parameters:
number
- the numbercurrency
- the currency
-
CurrencyAmount
Constructs a new object given a double value and a Java currency.- Parameters:
number
- a double valuecurrency
- the currency
-
-
Method Details
-
getCurrency
Returns the currency of this object.- Returns:
- this object's Currency
-