Most visited

Recently visited

Added in API level 24

CurrencyAmount

public class CurrencyAmount
extends Measure

java.lang.Object
   ↳ android.icu.util.Measure
     ↳ android.icu.util.CurrencyAmount


货币数量,由数字和货币组成。 CurrencyAmount对象是不可变的。

也可以看看:

Summary

Public constructors

CurrencyAmount(Number number, Currency currency)

用数字和货币构造一个新对象。

CurrencyAmount(double number, Currency currency)

给定一个double值和一个货币构造一个新对象。

Public methods

Currency getCurrency()

返回此对象的货币。

Inherited methods

From class android.icu.util.Measure
From class java.lang.Object

Public constructors

CurrencyAmount

Added in API level 24
CurrencyAmount (Number number, 
                Currency currency)

用数字和货币构造一个新对象。

Parameters
number Number: the number
currency Currency: the currency

CurrencyAmount

Added in API level 24
CurrencyAmount (double number, 
                Currency currency)

给定一个double值和一个货币构造一个新对象。

Parameters
number double: a double value
currency Currency: the currency

Public methods

getCurrency

Added in API level 24
Currency getCurrency ()

返回此对象的货币。

Returns
Currency this object's Currency

Hooray!