Currency

abstract class Currency(val code: String, val name: String, val symbol: String, val formatDecimals: Int) extends UnitOfMeasure[Money]

Represents a Currency, which is the Unit of Measure for Money

Represents a Currency, which is the Unit of Measure for Money

Value Params
code

Currency code

formatDecimals

Number of decimals in standard formatting

name

Currency name

symbol

Currency symbol

Companion
object
trait Serializable
class Object
trait Matchable
class Any
object ARS
object AUD
object BRL
object BTC
object CAD
object CHF
object CLP
object CNY
object CZK
object DKK
object ETH
object EUR
object GBP
object HKD
object INR
object JPY
object KRW
object LTC
object MXN
object MYR
object NAD
object NOK
object NZD
object RUB
object SEK
object TRY
object USD
object XAG
object XAU
object ZAR

Value members

Concrete methods

def apply(d: BigDecimal): Money
def apply[A](n: A)(num: Numeric[A]): Money
def canEqual(other: Any): Boolean
override def equals(other: Any): Boolean
Definition Classes
Any
override def hashCode(): Int
Definition Classes
Any
override def toString: String
Definition Classes
Any

Inherited methods

final def convertFrom[N](n: N)(num: Numeric[N]): Double

Applies the converterFrom method to a value

Applies the converterFrom method to a value

Type Params
N

Type

Value Params
n

N value in terms of this Unit

num

Numeric[N]

Inherited from
UnitOfMeasure
final def convertTo[N](n: N)(num: Numeric[N]): Double

Applies the converterTo method to a value

Applies the converterTo method to a value

Type Params
N

Type

Value Params
n

N value in terms of the ValueUnit

num

Numeric[N]

Inherited from
UnitOfMeasure
def unapply(q: Money): Some[Double]

Extractor method for getting the Numeric value of a Quantity in this UnitOfMeasure

Extractor method for getting the Numeric value of a Quantity in this UnitOfMeasure

Value Params
q

A - The Quantity being matched

Inherited from
UnitOfMeasure

Concrete fields

val code: String
val formatDecimals: Int
val name: String
val symbol: String