com.ibm.icu.util
Class CurrencyAmount

java.lang.Object
  extended by com.ibm.icu.util.Measure
      extended by 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
Status:
Stable ICU 3.0.

Constructor Summary
CurrencyAmount(double number, Currency currency)
          Constructs a new object given a double value and a currency.
CurrencyAmount(Number number, Currency currency)
          Constructs a new object given a number and a currency.
 
Method Summary
 Currency getCurrency()
          Returns the currency of this object.
 
Methods inherited from class com.ibm.icu.util.Measure
equals, getNumber, getUnit, hashCode, numbersEqual, 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)
Constructs a new object given a number and a currency.

Parameters:
number - the number
currency - the currency
Status:
Stable ICU 3.0.

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
Status:
Stable ICU 3.0.
Method Detail

getCurrency

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

Returns:
this object's Currency
Status:
Stable ICU 3.0.


Copyright (c) 2009 IBM Corporation and others.