Constructor | Description |
---|---|
CurrencyAmount(double number,
Currency currency) |
Constructs a new object given a double value and a currency.
|
CurrencyAmount(double number,
Currency currency) |
Constructs a new object given a double value and a Java currency.
|
CurrencyAmount(Number number,
Currency currency) |
Constructs a new object given a number and a currency.
|
CurrencyAmount(Number number,
Currency currency) |
Constructs a new object given a number and a Java currency.
|
Modifier and Type | Method | Description |
---|---|---|
Currency |
getCurrency() |
Returns the currency of this object.
|
public CurrencyAmount(Number number, Currency currency)
number
- the numbercurrency
- the currencypublic CurrencyAmount(double number, Currency currency)
number
- a double valuecurrency
- the currencypublic CurrencyAmount(Number number, Currency currency)
number
- the numbercurrency
- the currencypublic CurrencyAmount(double number, Currency currency)
number
- a double valuecurrency
- the currencypublic Currency getCurrency()
Copyright © 2016 Unicode, Inc. and others.