Package

com.lambdista

money

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class BigDecimalOps extends AnyVal

    Permalink

    Extensions for this DSL.

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

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

    Permalink

    This class is responsible for performing Currency conversions.

    This class is responsible for performing Currency conversions.

    Since

    2015-03-07

  4. trait Currency extends AnyRef

    Permalink

    Generic Currency

    Generic Currency

    Since

    2014-10-27

  5. implicit final class DoubleOps extends AnyVal

    Permalink
  6. implicit final class IntOps extends AnyVal

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

    Permalink

    This is the main class of the lib.

    This is the main class of the lib. A Money is represented by its amount and currency.

    amount

    the amount of this money

    currency

    the currency for this money

    converter

    the Converter to use

    Since

    2014-10-27

  8. class NumericMoney extends Numeric[Money]

    Permalink

    Numeric implementation for com.lambdista.money.Money

    Numeric implementation for com.lambdista.money.Money

    Since

    2015-06-18

Value Members

  1. object AED extends Currency

    Permalink

    United Arab Emirates Dirham

  2. object AFN extends Currency

    Permalink

    Afghanistan Afghani

  3. object ALL extends Currency

    Permalink

    Albania Lek

  4. object AMD extends Currency

    Permalink

    Armenia Dram

  5. object ANG extends Currency

    Permalink

    Netherlands Antilles Guilder

  6. object AOA extends Currency

    Permalink

    Angola Kwanza

  7. object ARS extends Currency

    Permalink

    Argentina Peso

  8. object AUD extends Currency

    Permalink

    Australia Dollar

  9. object AWG extends Currency

    Permalink

    Aruba Guilder

  10. object AZN extends Currency

    Permalink

    Azerbaijan New Manat

  11. object BAM extends Currency

    Permalink

    Bosnia and Herzegovina Convertible Marka

  12. object BBD extends Currency

    Permalink

    Barbados Dollar

  13. object BDT extends Currency

    Permalink

    Bangladesh Taka

  14. object BGN extends Currency

    Permalink

    Bulgaria Lev

  15. object BHD extends Currency

    Permalink

    Bahrain Dinar

  16. object BIF extends Currency

    Permalink

    Burundi Franc

  17. object BMD extends Currency

    Permalink

    Bermuda Dollar

  18. object BND extends Currency

    Permalink

    Brunei Darussalam Dollar

  19. object BOB extends Currency

    Permalink

    Bolivia Boliviano

  20. object BRL extends Currency

    Permalink

    Brazil Real

  21. object BSD extends Currency

    Permalink

    Bahamas Dollar

  22. object BTN extends Currency

    Permalink

    Bhutan Ngultrum

  23. object BWP extends Currency

    Permalink

    Botswana Pula

  24. object BYR extends Currency

    Permalink

    Belarus Ruble

  25. object BZD extends Currency

    Permalink

    Belize Dollar

  26. object CAD extends Currency

    Permalink

    Canada Dollar

  27. object CDF extends Currency

    Permalink

    Congo/Kinshasa Franc

  28. object CHF extends Currency

    Permalink

    Switzerland Franc

  29. object CLP extends Currency

    Permalink

    Chile Peso

  30. object CNY extends Currency

    Permalink

    China Yuan Renminbi

  31. object COP extends Currency

    Permalink

    Colombia Peso

  32. object CRC extends Currency

    Permalink

    Costa Rica Colon

  33. object CUC extends Currency

    Permalink

    Cuba Convertible Peso

  34. object CUP extends Currency

    Permalink

    Cuba Peso

  35. object CVE extends Currency

    Permalink

    Cape Verde Escudo

  36. object CZK extends Currency

    Permalink

    Czech Republic Koruna

  37. object Currency

    Permalink
  38. implicit val DEFAULT_CURRENCY: USD.type

    Permalink
  39. object DJF extends Currency

    Permalink

    Djibouti Franc

  40. object DKK extends Currency

    Permalink

    Denmark Krone

  41. object DOP extends Currency

    Permalink

    Dominican Republic Peso

  42. object DZD extends Currency

    Permalink

    Algeria Dinar

  43. object EGP extends Currency

    Permalink

    Egypt Pound

  44. object ERN extends Currency

    Permalink

    Eritrea Nakfa

  45. object ETB extends Currency

    Permalink

    Ethiopia Birr

  46. object EUR extends Currency

    Permalink

    Euro Member Countries

  47. object FJD extends Currency

    Permalink

    Fiji Dollar

  48. object FKP extends Currency

    Permalink

    Falkland Islands (Malvinas) Pound

  49. object GBP extends Currency

    Permalink

    United Kingdom Pound

  50. object GEL extends Currency

    Permalink

    Georgia Lari

  51. object GGP extends Currency

    Permalink

    Guernsey Pound

  52. object GHS extends Currency

    Permalink

    Ghana Cedi

  53. object GIP extends Currency

    Permalink

    Gibraltar Pound

  54. object GMD extends Currency

    Permalink

    Gambia Dalasi

  55. object GNF extends Currency

    Permalink

    Guinea Franc

  56. object GTQ extends Currency

    Permalink

    Guatemala Quetzal

  57. object GYD extends Currency

    Permalink

    Guyana Dollar

  58. object HKD extends Currency

    Permalink

    Hong Kong Dollar

  59. object HNL extends Currency

    Permalink

    Honduras Lempira

  60. object HRK extends Currency

    Permalink

    Croatia Kuna

  61. object HTG extends Currency

    Permalink

    Haiti Gourde

  62. object HUF extends Currency

    Permalink

    Hungary Forint

  63. object IDR extends Currency

    Permalink

    Indonesia Rupiah

  64. object ILS extends Currency

    Permalink

    Israel Shekel

  65. object IMP extends Currency

    Permalink

    Isle of Man Pound

  66. object INR extends Currency

    Permalink

    India Rupee

  67. object IQD extends Currency

    Permalink

    Iraq Dinar

  68. object IRR extends Currency

    Permalink

    Iran Rial

  69. object ISK extends Currency

    Permalink

    Iceland Krona

  70. object JEP extends Currency

    Permalink

    Jersey Pound

  71. object JMD extends Currency

    Permalink

    Jamaica Dollar

  72. object JOD extends Currency

    Permalink

    Jordan Dinar

  73. object JPY extends Currency

    Permalink

    Japan Yen

  74. object KES extends Currency

    Permalink

    Kenya Shilling

  75. object KGS extends Currency

    Permalink

    Kyrgyzstan Som

  76. object KHR extends Currency

    Permalink

    Cambodia Riel

  77. object KMF extends Currency

    Permalink

    Comoros Franc

  78. object KPW extends Currency

    Permalink

    Korea (North) Won

  79. object KRW extends Currency

    Permalink

    Korea (South) Won

  80. object KWD extends Currency

    Permalink

    Kuwait Dinar

  81. object KYD extends Currency

    Permalink

    Cayman Islands Dollar

  82. object KZT extends Currency

    Permalink

    Kazakhstan Tenge

  83. object LAK extends Currency

    Permalink

    Laos Kip

  84. object LBP extends Currency

    Permalink

    Lebanon Pound

  85. object LKR extends Currency

    Permalink

    Sri Lanka Rupee

  86. object LRD extends Currency

    Permalink

    Liberia Dollar

  87. object LSL extends Currency

    Permalink

    Lesotho Loti

  88. object LTL extends Currency

    Permalink

    Lithuania Litas

  89. object LYD extends Currency

    Permalink

    Libya Dinar

  90. object MAD extends Currency

    Permalink

    Morocco Dirham

  91. object MDL extends Currency

    Permalink

    Moldova Leu

  92. object MGA extends Currency

    Permalink

    Madagascar Ariary

  93. object MKD extends Currency

    Permalink

    Macedonia Denar

  94. object MMK extends Currency

    Permalink

    Myanmar (Burma) Kyat

  95. object MNT extends Currency

    Permalink

    Mongolia Tughrik

  96. object MOP extends Currency

    Permalink

    Macau Pataca

  97. object MRO extends Currency

    Permalink

    Mauritania Ouguiya

  98. object MUR extends Currency

    Permalink

    Mauritius Rupee

  99. object MVR extends Currency

    Permalink

    Maldives (Maldive Islands) Rufiyaa

  100. object MWK extends Currency

    Permalink

    Malawi Kwacha

  101. object MXN extends Currency

    Permalink

    Mexico Peso

  102. object MYR extends Currency

    Permalink

    Malaysia Ringgit

  103. object MZN extends Currency

    Permalink

    Mozambique Metical

  104. object NAD extends Currency

    Permalink

    Namibia Dollar

  105. object NGN extends Currency

    Permalink

    Nigeria Naira

  106. object NIO extends Currency

    Permalink

    Nicaragua Cordoba

  107. object NOK extends Currency

    Permalink

    Norway Krone

  108. object NPR extends Currency

    Permalink

    Nepal Rupee

  109. object NZD extends Currency

    Permalink

    New Zealand Dollar

  110. object OMR extends Currency

    Permalink

    Oman Rial

  111. object PAB extends Currency

    Permalink

    Panama Balboa

  112. object PEN extends Currency

    Permalink

    Peru Nuevo Sol

  113. object PGK extends Currency

    Permalink

    Papua New Guinea Kina

  114. object PHP extends Currency

    Permalink

    Philippines Peso

  115. object PKR extends Currency

    Permalink

    Pakistan Rupee

  116. object PLN extends Currency

    Permalink

    Poland Zloty

  117. object PYG extends Currency

    Permalink

    Paraguay Guarani

  118. object QAR extends Currency

    Permalink

    Qatar Riyal

  119. object RON extends Currency

    Permalink

    Romania New Leu

  120. object RSD extends Currency

    Permalink

    Serbia Dinar

  121. object RUB extends Currency

    Permalink

    Russia Ruble

  122. object RWF extends Currency

    Permalink

    Rwanda Franc

  123. object SAR extends Currency

    Permalink

    Saudi Arabia Riyal

  124. object SBD extends Currency

    Permalink

    Solomon Islands Dollar

  125. object SCR extends Currency

    Permalink

    Seychelles Rupee

  126. object SDG extends Currency

    Permalink

    Sudan Pound

  127. object SEK extends Currency

    Permalink

    Sweden Krona

  128. object SGD extends Currency

    Permalink

    Singapore Dollar

  129. object SHP extends Currency

    Permalink

    Saint Helena Pound

  130. object SLL extends Currency

    Permalink

    Sierra Leone Leone

  131. object SOS extends Currency

    Permalink

    Somalia Shilling

  132. object SPL extends Currency

    Permalink

    Seborga Luigino

  133. object SRD extends Currency

    Permalink

    Suriname Dollar

  134. object STD extends Currency

    Permalink

    São Tomé and Príncipe Dobra

  135. object SVC extends Currency

    Permalink

    El Salvador Colon

  136. object SYP extends Currency

    Permalink

    Syria Pound

  137. object SZL extends Currency

    Permalink

    Swaziland Lilangeni

  138. object THB extends Currency

    Permalink

    Thailand Baht

  139. object TJS extends Currency

    Permalink

    Tajikistan Somoni

  140. object TMT extends Currency

    Permalink

    Turkmenistan Manat

  141. object TND extends Currency

    Permalink

    Tunisia Dinar

  142. object TOP extends Currency

    Permalink

    Tonga Pa'anga

  143. object TRY extends Currency

    Permalink

    Turkey Lira

  144. object TTD extends Currency

    Permalink

    Trinidad and Tobago Dollar

  145. object TVD extends Currency

    Permalink

    Tuvalu Dollar

  146. object TWD extends Currency

    Permalink

    Taiwan New Dollar

  147. object TZS extends Currency

    Permalink

    Tanzania Shilling

  148. object UAH extends Currency

    Permalink

    Ukraine Hryvnia

  149. object UGX extends Currency

    Permalink

    Uganda Shilling

  150. object USD extends Currency

    Permalink

    United States Dollar

  151. object UYU extends Currency

    Permalink

    Uruguay Peso

  152. object UZS extends Currency

    Permalink

    Uzbekistan Som

  153. object VEF extends Currency

    Permalink

    Venezuela Bolivar

  154. object VND extends Currency

    Permalink

    Viet Nam Dong

  155. object VUV extends Currency

    Permalink

    Vanuatu Vatu

  156. object WST extends Currency

    Permalink

    Samoa Tala

  157. object XCD extends Currency

    Permalink

    East Caribbean Dollar

  158. object XDR extends Currency

    Permalink

    International Monetary Fund (IMF) Special Drawing Rights

  159. object XOF extends Currency

    Permalink

    Communauté Financière Africaine (BCEAO) Franc

  160. object XPF extends Currency

    Permalink

    Comptoirs Français du Pacifique (CFP) Franc

  161. object YER extends Currency

    Permalink

    Yemen Rial

  162. object ZAR extends Currency

    Permalink

    South Africa Rand

  163. object ZMW extends Currency

    Permalink

    Zambia Kwacha

  164. object ZWD extends Currency

    Permalink

    Zimbabwe Dollar

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

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

    Permalink

    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