Top Description Constructors Methods
com.ibm.icu.util

public Class CurrencyAmount

extends Measure
Class Inheritance

An amount of currency, consisting of a Number and a Currency. CurrencyAmount objects are immutable.
Author
Alan Liu
ICU Status
Stable since ICU 3.0.
See Also
java.lang.Number, Currency

Constructor Summary

AccessConstructor and Description
public
CurrencyAmount(Number
the number
number
,
Currency
the currency
currency
)

Constructs a new object given a number and a currency.

public
CurrencyAmount(double
a double value
number
,
Currency
the currency
currency
)

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

public
CurrencyAmount(Number
the number
number
,
Currency
the currency
currency
)

Constructs a new object given a number and a Java currency.

public
CurrencyAmount(double
a double value
number
,
Currency
the currency
currency
)

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

Method Summary

Modifier and TypeMethod and Description
public Currency

Returns:

this object's Currency
getCurrency
()

Returns the currency of this object.

Inherited from com.ibm.icu.util.Measure:
equalsgetNumbergetUnithashCodetoString

Constructor Detail

CurrencyAmountback to summary
public CurrencyAmount(Number number, Currency currency)

Constructs a new object given a number and a currency.

Parameters
number:Number

the number

currency:Currency

the currency

ICU Status
Stable since ICU 3.0.
CurrencyAmountback to summary
public CurrencyAmount(double number, Currency currency)

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

Parameters
number:double

a double value

currency:Currency

the currency

ICU Status
Stable since ICU 3.0.
CurrencyAmountback to summary
public CurrencyAmount(Number number, Currency currency)

Constructs a new object given a number and a Java currency.

Parameters
number:Number

the number

currency:Currency

the currency

ICU Status
Stable since ICU 60.
CurrencyAmountback to summary
public CurrencyAmount(double number, Currency currency)

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

Parameters
number:double

a double value

currency:Currency

the currency

ICU Status
Stable since ICU 60.

Method Detail

getCurrencyback to summary
public Currency getCurrency()

Returns the currency of this object.

Returns:Currency

this object's Currency

ICU Status
Stable since ICU 3.0.