com.ibm.icu.util
Class CurrencyAmount

java.lang.Object
  extended bycom.ibm.icu.util.Measure
      extended bycom.ibm.icu.util.CurrencyAmount

Deprecated. This is a draft API and might change in a future release of ICU.

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
Status:
Draft ICU 3.0.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

Constructor Summary
CurrencyAmount(double number, Currency currency)
          Deprecated. This is a draft API and might change in a future release of ICU.
CurrencyAmount(Number number, Currency currency)
          Deprecated. This is a draft API and might change in a future release of ICU.
 
Method Summary
 Currency getCurrency()
          Deprecated. This is a draft API and might change in a future release of ICU.
 
Methods inherited from class com.ibm.icu.util.Measure
equals, getNumber, getUnit, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CurrencyAmount

public CurrencyAmount(Number number,
                      Currency currency)
Deprecated. This is a draft API and might change in a future release of ICU.

Constructs a new object given a number and a currency.

Parameters:
number - the number
currency - the currency
Status:
Draft ICU 3.0.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

CurrencyAmount

public CurrencyAmount(double number,
                      Currency currency)
Deprecated. This is a draft API and might change in a future release of ICU.

Constructs a new object given a double value and a currency.

Parameters:
number - a double value
currency - the currency
Status:
Draft ICU 3.0.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..
Method Detail

getCurrency

public Currency getCurrency()
Deprecated. This is a draft API and might change in a future release of ICU.

Returns the currency of this object.

Returns:
this object's Currency
Status:
Draft ICU 3.0.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..


Copyright (c) 2004 IBM Corporation and others.