com.ibm.icu.util
Class CurrencyAmount
public class CurrencyAmount
An amount of currency, consisting of a Number and a Currency.
CurrencyAmount objects are immutable.
CurrencyAmount
public CurrencyAmount(Number number,
Currency currency)
Constructs a new object given a number and a currency.
number
- the numbercurrency
- the currency
CurrencyAmount
public CurrencyAmount(double number,
Currency currency)
Constructs a new object given a double value and a currency.
number
- a double valuecurrency
- the currency
getCurrency
public Currency getCurrency()
Returns the currency of this object.
Copyright (c) 2006 IBM Corporation and others.