CurrencyDetails

world.money.currency.CurrencyDetails
sealed trait CurrencyDetails extends Product, Serializable

A base trait for all ISO 4217 currency data representations.

It defines the fundamental properties shared by all currency entries. Concrete, predefined instances are available in the Currencies$ and HistoricCurrencies$ objects.

Attributes

See also

Currency for actively circulating currencies.

HistoricCurrency for withdrawn currencies.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Currency
object AED
object AFN
object ALL
object AMD
object AOA
object ARS
object AUD
object AWG
object AZN
object BAM
object BBD
object BDT
object BGN
object BHD
object BIF
object BMD
object BND
object BOB
object BOV
object BRL
object BSD
object BTN
object BWP
object BYN
object BZD
object CAD
object CDF
object CHE
object CHF
object CHW
object CLF
object CLP
object CNY
object COP
object COU
object CRC
object CUP
object CVE
object CZK
object DJF
object DKK
object DOP
object DZD
object EGP
object ERN
object ETB
object EUR
object FJD
object FKP
object GBP
object GEL
object GHS
object GIP
object GMD
object GNF
object GTQ
object GYD
object HKD
object HNL
object HTG
object HUF
object IDR
object ILS
object INR
object IQD
object IRR
object ISK
object JMD
object JOD
object JPY
object KES
object KGS
object KHR
object KMF
object KPW
object KRW
object KWD
object KYD
object KZT
object LAK
object LBP
object LKR
object LRD
object LSL
object LYD
object MAD
object MDL
object MGA
object MKD
object MMK
object MNT
object MOP
object MRU
object MUR
object MVR
object MWK
object MXN
object MXV
object MYR
object MZN
object NAD
object NGN
object NIO
object NOK
object NPR
object NZD
object OMR
object PAB
object PEN
object PGK
object PHP
object PKR
object PLN
object PYG
object QAR
object RON
object RSD
object RUB
object RWF
object SAR
object SBD
object SCR
object SDG
object SEK
object SGD
object SHP
object SLE
object SOS
object SRD
object SSP
object STN
object SVC
object SYP
object SZL
object THB
object TJS
object TMT
object TND
object TOP
object TRY
object TTD
object TWD
object TZS
object UAH
object UGX
object USD
object USN
object UYI
object UYU
object UYW
object UZS
object VED
object VES
object VND
object VUV
object WST
object XAF
object XAG
object XAU
object XBA
object XBB
object XBC
object XBD
object XCD
object XCG
object XDR
object XOF
object XPD
object XPF
object XPT
object XSU
object XTS
object XUA
object XXX
object YER
object ZAR
object ZMW
object ZWG
object ADP
object AFA
object ALK
object ANG
object AOK
object AON
object AOR
object ARA
object ARP
object ARY
object ATS
object AYM
object AZM
object BAD
object BEC
object BEF
object BEL
object BGJ
object BGK
object BGL
object BOP
object BRB
object BRC
object BRE
object BRN
object BRR
object BUK
object BYB
object BYR
object CHC
object CSD
object CSJ
object CSK
object CUC
object CYP
object DDM
object DEM
object ECS
object ECV
object EEK
object ESA
object ESB
object ESP
object FIM
object FRF
object GEK
object GHC
object GHP
object GNE
object GNS
object GQE
object GRD
object GWE
object GWP
object HRD
object HRK
object IEP
object ILP
object ILR
object ISJ
object ITL
object LAJ
object LSM
object LTL
object LTT
object LUC
object LUF
object LUL
object LVL
object LVR
object MGF
object MLF
object MRO
object MTL
object MTP
object MVQ
object MWK_H
object MXP
object MZE
object MZM
object NIC
object NLG
object PEH
object PEI
object PEN_H
object PES
object PLZ
object PTE
object RHD
object ROK
object ROL
object RON_H
object RUR
object SDD
object SDG_H
object SDP
object SIT
object SKK
object SLL
object SRG
object STD
object SUR
object SZL_H
object TJR
object TMM
object TPE
object TRL
object TRY_H
object UAK
object UGS
object UGW
object USS
object UYN
object UYP
object VEB
object VEF
object VNC
object XEU
object XFO
object XFU
object XRE
object YDD
object YUD
object YUM
object YUN
object ZAL
object ZMK
object ZRN
object ZRZ
object ZWC
object ZWD
object ZWL
object ZWN
object ZWR
Show all

Members list

Value members

Abstract methods

def code: CcyCode

The 3-letter uppercase CcyCode.

The 3-letter uppercase CcyCode.

Attributes

def name: String

The common, human-readable name of the currency.

The common, human-readable name of the currency.

Attributes

Concrete methods

Extension method from world.money.currency

Upcasts this currency instance to the general CurrencyDetails trait.

Upcasts this currency instance to the general CurrencyDetails trait.

This is a utility for situations, particularly in tests, where the compiler cannot equate a specific singleton type (e.g., Currencies.KES.type) with an existential one (? <: Currency). By upcasting both sides of a comparison to their common supertype, type-level comparison issues can be avoided.

Attributes

Returns

The same currency instance, but with its type widened to CurrencyDetails.

Example
import world.money.currency.*
val genericCurrency: CurrencyDetails = Currencies.KES.asCurrency

Inherited methods

def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product