money
package money
This package object contains utility functions and type aliases
- Since
2014-10-27
- Alphabetic
- By Inheritance
- money
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
implicit final
class
BigDecimalOps extends AnyVal
Extensions for this DSL.
- type Conversion = Map[(Currency, Currency), BigDecimal]
-
case class
Converter(conversion: Conversion) extends Product with Serializable
This class is responsible for performing
Currency
conversions.This class is responsible for performing
Currency
conversions.- Since
2015-03-07
-
trait
Currency extends AnyRef
Generic Currency
Generic Currency
- Since
2014-10-27
- implicit final class DoubleOps extends AnyVal
- implicit final class IntOps extends AnyVal
-
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.
This is the main class of the lib. A Money is represented by its
amount
andcurrency
.- amount
the amount of this money
- currency
the currency for this money
- Since
2014-10-27
-
class
NumericMoney extends Numeric[Money]
Numeric
implementation for money.MoneyNumeric
implementation for money.Money- Since
2015-06-18
Value Members
- implicit val DEFAULT_CURRENCY: USD.type
- implicit def numericMoney(implicit converter: Converter): NumericMoney
-
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
-
object
AED extends Currency
United Arab Emirates Dirham
-
object
AFN extends Currency
Afghanistan Afghani
-
object
ALL extends Currency
Albania Lek
-
object
AMD extends Currency
Armenia Dram
-
object
ANG extends Currency
Netherlands Antilles Guilder
-
object
AOA extends Currency
Angola Kwanza
-
object
ARS extends Currency
Argentina Peso
-
object
AUD extends Currency
Australia Dollar
-
object
AWG extends Currency
Aruba Guilder
-
object
AZN extends Currency
Azerbaijan New Manat
-
object
BAM extends Currency
Bosnia and Herzegovina Convertible Marka
-
object
BBD extends Currency
Barbados Dollar
-
object
BDT extends Currency
Bangladesh Taka
-
object
BGN extends Currency
Bulgaria Lev
-
object
BHD extends Currency
Bahrain Dinar
-
object
BIF extends Currency
Burundi Franc
-
object
BMD extends Currency
Bermuda Dollar
-
object
BND extends Currency
Brunei Darussalam Dollar
-
object
BOB extends Currency
Bolivia Boliviano
-
object
BRL extends Currency
Brazil Real
-
object
BSD extends Currency
Bahamas Dollar
-
object
BTN extends Currency
Bhutan Ngultrum
-
object
BWP extends Currency
Botswana Pula
-
object
BYR extends Currency
Belarus Ruble
-
object
BZD extends Currency
Belize Dollar
-
object
CAD extends Currency
Canada Dollar
-
object
CDF extends Currency
Congo/Kinshasa Franc
-
object
CER extends Currency
Coeficiente de Estabilización de Referencia
-
object
CHF extends Currency
Switzerland Franc
-
object
CLF extends Currency
Chilean Unidad de Fomento
-
object
CLP extends Currency
Chile Peso
-
object
CNH extends Currency
Official currency people republic of China.
Official currency people republic of China. Renminbi
-
object
CNY extends Currency
China Yuan Renminbi
-
object
COP extends Currency
Colombia Peso
-
object
CRC extends Currency
Costa Rica Colon
-
object
CUC extends Currency
Cuba Convertible Peso
-
object
CUP extends Currency
Cuba Peso
-
object
CVE extends Currency
Cape Verde Escudo
-
object
CZK extends Currency
Czech Republic Koruna
- object Converter extends Serializable
- object Currency
-
object
DJF extends Currency
Djibouti Franc
-
object
DKK extends Currency
Denmark Krone
-
object
DOP extends Currency
Dominican Republic Peso
-
object
DZD extends Currency
Algeria Dinar
-
object
EGP extends Currency
Egypt Pound
-
object
ERN extends Currency
Eritrea Nakfa
-
object
ETB extends Currency
Ethiopia Birr
-
object
EUR extends Currency
Euro Member Countries
-
object
FJD extends Currency
Fiji Dollar
-
object
FKP extends Currency
Falkland Islands (Malvinas) Pound
-
object
GBP extends Currency
United Kingdom Pound
-
object
GEL extends Currency
Georgia Lari
-
object
GGP extends Currency
Guernsey Pound
-
object
GHS extends Currency
Ghana Cedi
-
object
GIP extends Currency
Gibraltar Pound
-
object
GMD extends Currency
Gambia Dalasi
-
object
GNF extends Currency
Guinea Franc
-
object
GTQ extends Currency
Guatemala Quetzal
-
object
GYD extends Currency
Guyana Dollar
-
object
HKD extends Currency
Hong Kong Dollar
-
object
HNL extends Currency
Honduras Lempira
-
object
HRK extends Currency
Croatia Kuna
-
object
HTG extends Currency
Haiti Gourde
-
object
HUF extends Currency
Hungary Forint
-
object
IDR extends Currency
Indonesia Rupiah
-
object
ILS extends Currency
Israel Shekel
-
object
IMP extends Currency
Isle of Man Pound
-
object
INR extends Currency
India Rupee
-
object
IQD extends Currency
Iraq Dinar
-
object
IRR extends Currency
Iran Rial
-
object
ISK extends Currency
Iceland Krona
-
object
JEP extends Currency
Jersey Pound
-
object
JMD extends Currency
Jamaica Dollar
-
object
JOD extends Currency
Jordan Dinar
-
object
JPY extends Currency
Japan Yen
-
object
KES extends Currency
Kenya Shilling
-
object
KGS extends Currency
Kyrgyzstan Som
-
object
KHR extends Currency
Cambodia Riel
-
object
KMF extends Currency
Comoros Franc
-
object
KPW extends Currency
Korea (North) Won
-
object
KRW extends Currency
Korea (South) Won
-
object
KWD extends Currency
Kuwait Dinar
-
object
KYD extends Currency
Cayman Islands Dollar
-
object
KZT extends Currency
Kazakhstan Tenge
-
object
LAK extends Currency
Laos Kip
-
object
LBP extends Currency
Lebanon Pound
-
object
LKR extends Currency
Sri Lanka Rupee
-
object
LRD extends Currency
Liberia Dollar
-
object
LSL extends Currency
Lesotho Loti
-
object
LTL extends Currency
Lithuania Litas
-
object
LYD extends Currency
Libya Dinar
-
object
MAD extends Currency
Morocco Dirham
-
object
MDL extends Currency
Moldova Leu
-
object
MGA extends Currency
Madagascar Ariary
-
object
MKD extends Currency
Macedonia Denar
-
object
MMK extends Currency
Myanmar (Burma) Kyat
-
object
MNT extends Currency
Mongolia Tughrik
-
object
MOP extends Currency
Macau Pataca
-
object
MRO extends Currency
Mauritania Ouguiya
-
object
MUR extends Currency
Mauritius Rupee
-
object
MVR extends Currency
Maldives (Maldive Islands) Rufiyaa
-
object
MWK extends Currency
Malawi Kwacha
-
object
MXN extends Currency
Mexico Peso
-
object
MYR extends Currency
Malaysia Ringgit
-
object
MZN extends Currency
Mozambique Metical
-
object
NAD extends Currency
Namibia Dollar
-
object
NGN extends Currency
Nigeria Naira
-
object
NIO extends Currency
Nicaragua Cordoba
-
object
NOK extends Currency
Norway Krone
-
object
NPR extends Currency
Nepal Rupee
-
object
NZD extends Currency
New Zealand Dollar
-
object
OMR extends Currency
Oman Rial
- object ORO extends Currency
-
object
PAB extends Currency
Panama Balboa
-
object
PEN extends Currency
Peru Nuevo Sol
-
object
PGK extends Currency
Papua New Guinea Kina
-
object
PHP extends Currency
Philippines Peso
-
object
PKR extends Currency
Pakistan Rupee
-
object
PLN extends Currency
Poland Zloty
-
object
PYG extends Currency
Paraguay Guarani
-
object
QAR extends Currency
Qatar Riyal
-
object
RON extends Currency
Romania New Leu
-
object
RSD extends Currency
Serbia Dinar
-
object
RUB extends Currency
Russia Ruble
-
object
RWF extends Currency
Rwanda Franc
-
object
SAR extends Currency
Saudi Arabia Riyal
-
object
SBD extends Currency
Solomon Islands Dollar
-
object
SCR extends Currency
Seychelles Rupee
-
object
SDG extends Currency
Sudan Pound
-
object
SEK extends Currency
Sweden Krona
-
object
SGD extends Currency
Singapore Dollar
-
object
SHP extends Currency
Saint Helena Pound
-
object
SLL extends Currency
Sierra Leone Leone
-
object
SOS extends Currency
Somalia Shilling
-
object
SPL extends Currency
Seborga Luigino
-
object
SRD extends Currency
Suriname Dollar
-
object
STD extends Currency
São Tomé and Príncipe Dobra
-
object
SVC extends Currency
El Salvador Colon
-
object
SYP extends Currency
Syria Pound
-
object
SZL extends Currency
Swaziland Lilangeni
-
object
THB extends Currency
Thailand Baht
-
object
TJS extends Currency
Tajikistan Somoni
-
object
TMT extends Currency
Turkmenistan Manat
-
object
TND extends Currency
Tunisia Dinar
-
object
TOP extends Currency
Tonga Pa'anga
-
object
TRY extends Currency
Turkey Lira
-
object
TTD extends Currency
Trinidad and Tobago Dollar
-
object
TVD extends Currency
Tuvalu Dollar
-
object
TWD extends Currency
Taiwan New Dollar
-
object
TZS extends Currency
Tanzania Shilling
-
object
UAH extends Currency
Ukraine Hryvnia
-
object
UDI extends Currency
Mexican currency fund unit
-
object
UGX extends Currency
Uganda Shilling
-
object
USD extends Currency
United States Dollar
-
object
UVR extends Currency
Unidad de valor real.
Unidad de valor real. Colombia
-
object
UYU extends Currency
Uruguay Peso
-
object
UZS extends Currency
Uzbekistan Som
-
object
VEB extends Currency
Venezuelan Bolivar Rate
-
object
VEF extends Currency
Venezuela Bolivar
-
object
VND extends Currency
Viet Nam Dong
-
object
VUV extends Currency
Vanuatu Vatu
-
object
WST extends Currency
Samoa Tala
-
object
XAG extends Currency
Silver Ounce Rate
-
object
XAU extends Currency
Gold Ounce Rate
-
object
XCD extends Currency
East Caribbean Dollar
-
object
XDR extends Currency
International Monetary Fund (IMF) Special Drawing Rights
-
object
XOF extends Currency
Communauté Financière Africaine (BCEAO) Franc
-
object
XPD extends Currency
Palladium Ounce Rate
-
object
XPF extends Currency
Comptoirs Français du Pacifique (CFP) Franc
- object XPT extends Currency
- object XUL extends Currency
-
object
YER extends Currency
Yemen Rial
-
object
ZAR extends Currency
South Africa Rand
-
object
ZMW extends Currency
Zambia Kwacha
-
object
ZWD extends Currency
Zimbabwe Dollar