money

package money

This package object contains utility functions and type aliases

Since

2014-10-27

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. money
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class BigDecimalOps extends AnyVal

    Extensions for this DSL.

  2. type Conversion = Map[(Currency, Currency), BigDecimal]

  3. case class Converter(conversion: Conversion) extends Product with Serializable

    This class is responsible for performing Currency conversions.

  4. trait Currency extends AnyRef

    Generic Currency

  5. implicit final class DoubleOps extends AnyVal

  6. implicit final class IntOps extends AnyVal

  7. case class Money(amount: BigDecimal, currency: Currency)(implicit converter: Converter) extends Ordered[Money] with Product with Serializable

    This is the main class of the lib.

  8. class NumericMoney extends Numeric[Money]

    Numeric implementation for money.Money

Value Members

  1. object AED extends Currency

    United Arab Emirates Dirham

  2. object AFN extends Currency

    Afghanistan Afghani

  3. object ALL extends Currency

    Albania Lek

  4. object AMD extends Currency

    Armenia Dram

  5. object ANG extends Currency

    Netherlands Antilles Guilder

  6. object AOA extends Currency

    Angola Kwanza

  7. object ARS extends Currency

    Argentina Peso

  8. object AUD extends Currency

    Australia Dollar

  9. object AWG extends Currency

    Aruba Guilder

  10. object AZN extends Currency

    Azerbaijan New Manat

  11. object BAM extends Currency

    Bosnia and Herzegovina Convertible Marka

  12. object BBD extends Currency

    Barbados Dollar

  13. object BDT extends Currency

    Bangladesh Taka

  14. object BGN extends Currency

    Bulgaria Lev

  15. object BHD extends Currency

    Bahrain Dinar

  16. object BIF extends Currency

    Burundi Franc

  17. object BMD extends Currency

    Bermuda Dollar

  18. object BND extends Currency

    Brunei Darussalam Dollar

  19. object BOB extends Currency

    Bolivia Boliviano

  20. object BRL extends Currency

    Brazil Real

  21. object BSD extends Currency

    Bahamas Dollar

  22. object BTN extends Currency

    Bhutan Ngultrum

  23. object BWP extends Currency

    Botswana Pula

  24. object BYR extends Currency

    Belarus Ruble

  25. object BZD extends Currency

    Belize Dollar

  26. object CAD extends Currency

    Canada Dollar

  27. object CDF extends Currency

    Congo/Kinshasa Franc

  28. object CHF extends Currency

    Switzerland Franc

  29. object CLP extends Currency

    Chile Peso

  30. object CNY extends Currency

    China Yuan Renminbi

  31. object COP extends Currency

    Colombia Peso

  32. object CRC extends Currency

    Costa Rica Colon

  33. object CUC extends Currency

    Cuba Convertible Peso

  34. object CUP extends Currency

    Cuba Peso

  35. object CVE extends Currency

    Cape Verde Escudo

  36. object CZK extends Currency

    Czech Republic Koruna

  37. object Converter extends Serializable

  38. object Currency

  39. implicit val DEFAULT_CURRENCY: USD.type

  40. object DJF extends Currency

    Djibouti Franc

  41. object DKK extends Currency

    Denmark Krone

  42. object DOP extends Currency

    Dominican Republic Peso

  43. object DZD extends Currency

    Algeria Dinar

  44. object EGP extends Currency

    Egypt Pound

  45. object ERN extends Currency

    Eritrea Nakfa

  46. object ETB extends Currency

    Ethiopia Birr

  47. object EUR extends Currency

    Euro Member Countries

  48. object FJD extends Currency

    Fiji Dollar

  49. object FKP extends Currency

    Falkland Islands (Malvinas) Pound

  50. object GBP extends Currency

    United Kingdom Pound

  51. object GEL extends Currency

    Georgia Lari

  52. object GGP extends Currency

    Guernsey Pound

  53. object GHS extends Currency

    Ghana Cedi

  54. object GIP extends Currency

    Gibraltar Pound

  55. object GMD extends Currency

    Gambia Dalasi

  56. object GNF extends Currency

    Guinea Franc

  57. object GTQ extends Currency

    Guatemala Quetzal

  58. object GYD extends Currency

    Guyana Dollar

  59. object HKD extends Currency

    Hong Kong Dollar

  60. object HNL extends Currency

    Honduras Lempira

  61. object HRK extends Currency

    Croatia Kuna

  62. object HTG extends Currency

    Haiti Gourde

  63. object HUF extends Currency

    Hungary Forint

  64. object IDR extends Currency

    Indonesia Rupiah

  65. object ILS extends Currency

    Israel Shekel

  66. object IMP extends Currency

    Isle of Man Pound

  67. object INR extends Currency

    India Rupee

  68. object IQD extends Currency

    Iraq Dinar

  69. object IRR extends Currency

    Iran Rial

  70. object ISK extends Currency

    Iceland Krona

  71. object JEP extends Currency

    Jersey Pound

  72. object JMD extends Currency

    Jamaica Dollar

  73. object JOD extends Currency

    Jordan Dinar

  74. object JPY extends Currency

    Japan Yen

  75. object KES extends Currency

    Kenya Shilling

  76. object KGS extends Currency

    Kyrgyzstan Som

  77. object KHR extends Currency

    Cambodia Riel

  78. object KMF extends Currency

    Comoros Franc

  79. object KPW extends Currency

    Korea (North) Won

  80. object KRW extends Currency

    Korea (South) Won

  81. object KWD extends Currency

    Kuwait Dinar

  82. object KYD extends Currency

    Cayman Islands Dollar

  83. object KZT extends Currency

    Kazakhstan Tenge

  84. object LAK extends Currency

    Laos Kip

  85. object LBP extends Currency

    Lebanon Pound

  86. object LKR extends Currency

    Sri Lanka Rupee

  87. object LRD extends Currency

    Liberia Dollar

  88. object LSL extends Currency

    Lesotho Loti

  89. object LTL extends Currency

    Lithuania Litas

  90. object LYD extends Currency

    Libya Dinar

  91. object MAD extends Currency

    Morocco Dirham

  92. object MDL extends Currency

    Moldova Leu

  93. object MGA extends Currency

    Madagascar Ariary

  94. object MKD extends Currency

    Macedonia Denar

  95. object MMK extends Currency

    Myanmar (Burma) Kyat

  96. object MNT extends Currency

    Mongolia Tughrik

  97. object MOP extends Currency

    Macau Pataca

  98. object MRO extends Currency

    Mauritania Ouguiya

  99. object MUR extends Currency

    Mauritius Rupee

  100. object MVR extends Currency

    Maldives (Maldive Islands) Rufiyaa

  101. object MWK extends Currency

    Malawi Kwacha

  102. object MXN extends Currency

    Mexico Peso

  103. object MYR extends Currency

    Malaysia Ringgit

  104. object MZN extends Currency

    Mozambique Metical

  105. object NAD extends Currency

    Namibia Dollar

  106. object NGN extends Currency

    Nigeria Naira

  107. object NIO extends Currency

    Nicaragua Cordoba

  108. object NOK extends Currency

    Norway Krone

  109. object NPR extends Currency

    Nepal Rupee

  110. object NZD extends Currency

    New Zealand Dollar

  111. object OMR extends Currency

    Oman Rial

  112. object PAB extends Currency

    Panama Balboa

  113. object PEN extends Currency

    Peru Nuevo Sol

  114. object PGK extends Currency

    Papua New Guinea Kina

  115. object PHP extends Currency

    Philippines Peso

  116. object PKR extends Currency

    Pakistan Rupee

  117. object PLN extends Currency

    Poland Zloty

  118. object PYG extends Currency

    Paraguay Guarani

  119. object QAR extends Currency

    Qatar Riyal

  120. object RON extends Currency

    Romania New Leu

  121. object RSD extends Currency

    Serbia Dinar

  122. object RUB extends Currency

    Russia Ruble

  123. object RWF extends Currency

    Rwanda Franc

  124. object SAR extends Currency

    Saudi Arabia Riyal

  125. object SBD extends Currency

    Solomon Islands Dollar

  126. object SCR extends Currency

    Seychelles Rupee

  127. object SDG extends Currency

    Sudan Pound

  128. object SEK extends Currency

    Sweden Krona

  129. object SGD extends Currency

    Singapore Dollar

  130. object SHP extends Currency

    Saint Helena Pound

  131. object SLL extends Currency

    Sierra Leone Leone

  132. object SOS extends Currency

    Somalia Shilling

  133. object SPL extends Currency

    Seborga Luigino

  134. object SRD extends Currency

    Suriname Dollar

  135. object STD extends Currency

    São Tomé and Príncipe Dobra

  136. object SVC extends Currency

    El Salvador Colon

  137. object SYP extends Currency

    Syria Pound

  138. object SZL extends Currency

    Swaziland Lilangeni

  139. object THB extends Currency

    Thailand Baht

  140. object TJS extends Currency

    Tajikistan Somoni

  141. object TMT extends Currency

    Turkmenistan Manat

  142. object TND extends Currency

    Tunisia Dinar

  143. object TOP extends Currency

    Tonga Pa'anga

  144. object TRY extends Currency

    Turkey Lira

  145. object TTD extends Currency

    Trinidad and Tobago Dollar

  146. object TVD extends Currency

    Tuvalu Dollar

  147. object TWD extends Currency

    Taiwan New Dollar

  148. object TZS extends Currency

    Tanzania Shilling

  149. object UAH extends Currency

    Ukraine Hryvnia

  150. object UGX extends Currency

    Uganda Shilling

  151. object USD extends Currency

    United States Dollar

  152. object UYU extends Currency

    Uruguay Peso

  153. object UZS extends Currency

    Uzbekistan Som

  154. object VEF extends Currency

    Venezuela Bolivar

  155. object VND extends Currency

    Viet Nam Dong

  156. object VUV extends Currency

    Vanuatu Vatu

  157. object WST extends Currency

    Samoa Tala

  158. object XCD extends Currency

    East Caribbean Dollar

  159. object XDR extends Currency

    International Monetary Fund (IMF) Special Drawing Rights

  160. object XOF extends Currency

    Communauté Financière Africaine (BCEAO) Franc

  161. object XPF extends Currency

    Comptoirs Français du Pacifique (CFP) Franc

  162. object YER extends Currency

    Yemen Rial

  163. object ZAR extends Currency

    South Africa Rand

  164. object ZMW extends Currency

    Zambia Kwacha

  165. object ZWD extends Currency

    Zimbabwe Dollar

  166. implicit def numericMoney(implicit converter: Converter): NumericMoney

  167. def toFormattedString(value: BigDecimal, decimalDigits: Int = 5, roundingMode: RoundingMode = RoundingMode.HALF_DOWN): String

    Formats the BigDecimal value using a number of decimal digits equals to the decimalDigits param, which defaults to 5.

    Formats the BigDecimal value using a number of decimal digits equals to the decimalDigits param, which defaults to 5.

    value

    the BigDecimal value to format

    decimalDigits

    the number of decimal digits to include. The valid range is [0, 100], both inclusive

    returns

    a formatted string representing the value passed as a parameter

Inherited from AnyRef

Inherited from Any

Ungrouped