com.ibm.icu.util

Class 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: java.lang.Number Currency

UNKNOWN: ICU 3.0 This API might change or be removed in a future release.

Constructor Summary
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.
Method Summary
CurrencygetCurrency()
Returns the currency of this object.

Constructor Detail

CurrencyAmount

public CurrencyAmount(Number number, Currency currency)
Constructs a new object given a number and a currency.

Parameters: number the number currency the currency

UNKNOWN: ICU 3.0 This API might change or be removed in a future release.

CurrencyAmount

public CurrencyAmount(double number, Currency currency)
Constructs a new object given a double value and a currency.

Parameters: number a double value currency the currency

UNKNOWN: ICU 3.0 This API might change or be removed in a future release.

Method Detail

getCurrency

public Currency getCurrency()
Returns the currency of this object.

Returns: this object's Currency

UNKNOWN: ICU 3.0 This API might change or be removed in a future release.

Copyright (c) 2006 IBM Corporation and others.