Package com.ibm.icu.util
Class CurrencyAmount
- java.lang.Object
-
- com.ibm.icu.util.Measure
-
- com.ibm.icu.util.CurrencyAmount
-
-
Constructor Summary
Constructors Constructor Description CurrencyAmount(double number, Currency currency)
Constructs a new object given a double value and a currency.CurrencyAmount(double number, java.util.Currency currency)
Constructs a new object given a double value and a Java currency.CurrencyAmount(java.lang.Number number, Currency currency)
Constructs a new object given a number and a currency.CurrencyAmount(java.lang.Number number, java.util.Currency currency)
Constructs a new object given a number and a Java currency.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Currency
getCurrency()
Returns the currency of this object.
-
-
-
Constructor Detail
-
CurrencyAmount
public CurrencyAmount(java.lang.Number number, Currency currency)
Constructs a new object given a number and a currency.- Parameters:
number
- the numbercurrency
- the currency
-
CurrencyAmount
public CurrencyAmount(double number, Currency currency)
Constructs a new object given a double value and a currency.- Parameters:
number
- a double valuecurrency
- the currency
-
CurrencyAmount
public CurrencyAmount(java.lang.Number number, java.util.Currency currency)
Constructs a new object given a number and a Java currency.- Parameters:
number
- the numbercurrency
- the currency
-
CurrencyAmount
public CurrencyAmount(double number, java.util.Currency currency)
Constructs a new object given a double value and a Java currency.- Parameters:
number
- a double valuecurrency
- the currency
-
-
Method Detail
-
getCurrency
public Currency getCurrency()
Returns the currency of this object.- Returns:
- this object's Currency
-
-