com.ibm.icu.util
Class CurrencyAmount
java.lang.Object
com.ibm.icu.util.Measure
com.ibm.icu.util.CurrencyAmount
public class CurrencyAmount
- extends Measure
An amount of currency, consisting of a Number and a Currency.
CurrencyAmount objects are immutable.
- Author:
- Alan Liu
- See Also:
Number
,
Currency
Constructor Summary |
CurrencyAmount(double number,
Currency currency)
Constructs a new object given a double value and a currency. |
CurrencyAmount(java.lang.Number number,
Currency currency)
Constructs a new object given a number and a currency. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
getCurrency
public Currency getCurrency()
- Returns the currency of this object.
- Returns:
- this object's Currency
Copyright (c) 2007 IBM Corporation and others.