Enum IsoCurrency
- All Implemented Interfaces:
Serializable,Comparable<IsoCurrency>,java.lang.constant.Constable
Only current currencies are listed in this enum.
Note that enum entries are named after the ISO 4217 alphabetic code. This choice has been made in version 3.0.0 of jbanking in order to :
- reduce breaking changes in future versions (names change more often than codes),
- make this enum easier to serialize (to JSON, in database...),
- prevent accidental duplicates.
Last verification date of this list can be seen in the @LastVerification value.
Usage:
// Get ISO currency information
IsoCurrency currency = IsoCurrency.fromAlphabeticCode("EUR").get();
Assertion.assertEquals(978, currency.getNumericCode());
Assertion.assertEquals(2, currency.getMinorUnit().get());
Assertion.assertEquals(NATIONAL, currency.getCategory());
Assertion.assertTrue(currency.getCountries().contains(FR));
- Since:
- 1.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnited Arab Emirates dirham.Afghan afghani.Albanian lek.Armenian dram.Netherlands Antillean guilder.Angolan kwanza.Argentine peso.Australian dollar.Aruban florin.Azerbaijani manat.Bosnia and Herzegovina convertible mark.Barbadian dollar.Bangladeshi taka.Bulgarian lev.Bahraini dinar.Burundian franc.Bermudian dollar.Brunei dollar.Bolivian boliviano.Bolivian Mvdol (funds code).Brazilian real.Bahamian dollar.Bhutanese ngultrum.Botswana pula.Belarusian ruble.Belize dollar.Canadian dollar.Congolese franc.WIR euro (complementary currency).Swiss franc.WIR franc (complementary currency).Unidad de Fomento (funds code).Chilean peso.Yuan Renminbi.Colombian peso.Unidad de Valor Real (UVR) (funds code).Costa Rican colón.Cuban convertible peso.Cuban peso.Cape Verdean escudo.Czech koruna.Djiboutian franc.Danish krone.Dominican peso.Algerian dinar.Egyptian pound.Eritrean nakfa.Ethiopian birr.Euro.Fijian dollar.Falkland Islands pound.Pound sterling.Georgian lari.Ghanaian cedi.Gibraltar pound.Gambian dalasi.Guinean franc.Guatemalan quetzal.Guyanese dollar.Hong Kong dollar.Honduran lempira.Deprecated.see ISO 4217 amendment 174 (will be removed in 5.0.0)Haitian gourde.Hungarian forint.Indonesian rupiah.Israeli new shekel.Indian rupee.Iraqi dinar.Iranian rial.Icelandic króna.Jamaican dollar.Jordanian dinar.Japanese yen.Kenyan shilling.Kyrgyzstani som.Cambodian riel.Comorian franc.North Korean won.South Korean won.Kuwaiti dinar.Cayman Islands dollar.Kazakhstani tenge.Lao kip.Lebanese pound.Sri Lankan rupee.Liberian dollar.Lesotho loti.Libyan dinar.Moroccan dirham.Moldovan leu.Malagasy ariary.Macedonian denar.Burmese kyat.Mongolian tögrög (or tugrik).Macanese pataca.Mauritanian ouguiya.Mauritian rupee.Maldivian rufiyaa.Malawian kwacha.Mexican peso.Mexican unidad de inversión.Malaysian ringgit.Mozambican metical.Namibian dollar.Nigerian naira.Nicaraguan córdoba.Norwegian krone.Nepalese rupee.New Zealand dollar.Omani rial.Panamanian balboa.Peruvian sol.Papua New Guinean kina.Philippine peso.Pakistani rupee.Polish złoty.Paraguayan guaraní.Qatari riyal.Romanian leu.Serbian dinar.Russian ruble.Rwandan franc.Saudi riyal.Solomon Islands dollar.Seychellois rupee.Sudanese pound.Swedish króna.Singapore dollar.Saint Helena pound.Sierra Leonean leone.Sierra Leonean leone.Somali shilling.Surinamese dollar.South Sudanese pound.São Tomé and Príncipe dobra.Salvadoran colón.Syrian pound.Swazi lilangeni.Thai baht.Tajikistani somoni.Turkmenistan manat.Tunisian dinar.Tongan paʻanga.Turkish lira.Trinidad and Tobago dollar.New Taiwan dollar.Tanzanian shilling.Ukrainian hryvnia.Ugandan shilling.United States dollar.United States dollar (next day) (funds code).United States dollar (same day) (funds code).Uruguay Peso en Unidades Indexadas (URUIURUI) (funds code).Uruguayan peso.Uruguayan Unidad Previsional (Fund currency).Uzbekistani soʻm.Venezuelan bolívar digital (as designated on Wikipedia).Venezuelan bolívar soberano.Vietnamese đồng.Vanuatu vatu.Samoan tālā.Central African CFA franc.Silver.Gold.European Composite Unit (EURCO).European Monetary Unit (E.M.U.-6).European Unit of Account 9 (E.U.A.-9).European Unit of Account 17 (E.U.A.-17).Eastern Caribbean dollar.Special drawing rights.West African CFA franc.Palladium.CFP franc.Platinum.The SUCRE (a.k.a Sistema Unitario de Compensación Regional, or Unified System for Regional Compensation).Code reserved for testing.ADB (African Development Bank) Unit of Account.No currency.Yemeni rial.South African rand.Zambian kwacha.Zimbabwean dollar. -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<IsoCurrency>allOf(IsoCurrency.Category category) Get currencies of the given category.static Optional<IsoCurrency>fromAlphabeticCode(String code) Translate the given ISO 4217 alphabetical code to an IsoCurrency.static Optional<IsoCurrency>fromNumericCode(int code) Translate the given ISO 4217 numeric code to an IsoCurrency.Returns this currency ISO 4217 alphabetical code.Returns this currencycategory.Returns the countries that are using this currency.Returns this currency minor unit, if applicable.intReturns this currency ISO 4217 numeric code.static IsoCurrencyReturns the enum constant of this type with the specified name.static IsoCurrency[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AED
United Arab Emirates dirham.- See Also:
-
AFN
Afghan afghani.- See Also:
-
ALL
Albanian lek.- See Also:
-
AMD
Armenian dram.- See Also:
-
ANG
Netherlands Antillean guilder.- See Also:
-
AOA
Angolan kwanza.- See Also:
-
ARS
Argentine peso.- See Also:
-
AUD
Australian dollar.- See Also:
-
AWG
Aruban florin.- See Also:
-
AZN
Azerbaijani manat.- See Also:
-
BAM
Bosnia and Herzegovina convertible mark.- See Also:
-
BBD
Barbadian dollar.- See Also:
-
BDT
Bangladeshi taka.- See Also:
-
BGN
Bulgarian lev.- See Also:
-
BHD
Bahraini dinar.- See Also:
-
BIF
Burundian franc.- See Also:
-
BMD
Bermudian dollar.- See Also:
-
BND
Brunei dollar.- See Also:
-
BOB
Bolivian boliviano.- See Also:
-
BOV
Bolivian Mvdol (funds code).For indexation purposes and denomination of certain financial instruments (e.g. treasury bills). The Mvdol is set daily by the Central Bank of Bolivia based on the official USD/BOB rate.
- See Also:
-
BRL
Brazilian real.- See Also:
-
BSD
Bahamian dollar.- See Also:
-
BTN
Bhutanese ngultrum.- See Also:
-
BWP
Botswana pula.- See Also:
-
BYN
Belarusian ruble.- See Also:
-
BZD
Belize dollar.- See Also:
-
CAD
Canadian dollar.- See Also:
-
CDF
Congolese franc.- See Also:
-
CHE
WIR euro (complementary currency).WIR Bank for use with the EFTPOS system with their own WIR-card and the Electronic Banking Services.
- See Also:
-
CHF
Swiss franc.- See Also:
-
CHW
WIR franc (complementary currency).WIR Bank for use with the EFTPOS system with their own WIR-card and the Electronic Banking Services.
- See Also:
-
CLF
Unidad de Fomento (funds code).The CLF is a daily economically-financial unit calculated by the Central Bank of Chile according to inflation (as measured by the Chilean Consumer Price Index of the previous month). The value of the CLF is expressed in terms of Chilean Pesos per CLF. The use of CLF has been widely extended to all types of bank loans, financial investments (time deposits, mortgages and other public or private indexed instruments), contracts and fees in some cases.
- See Also:
-
CLP
Chilean peso.- See Also:
-
CNY
Yuan Renminbi.- See Also:
-
COP
Colombian peso.- See Also:
-
COU
Unidad de Valor Real (UVR) (funds code).The UVR is a daily account unit set by the Central Bank of Colombia according to the variation in the Consumer Price Index of Colombia. The value of UVR is expressed in terms of Colombian Pesos per UVR. It is used to denominate and update mortgage loans and some public debt bonds.
- See Also:
-
CRC
Costa Rican colón.- See Also:
-
CUC
Cuban convertible peso.- See Also:
-
CUP
Cuban peso.- See Also:
-
CVE
Cape Verdean escudo.- See Also:
-
CZK
Czech koruna.- See Also:
-
DJF
Djiboutian franc.- See Also:
-
DKK
Danish krone.- See Also:
-
DOP
Dominican peso.- See Also:
-
DZD
Algerian dinar.- See Also:
-
EGP
Egyptian pound.- See Also:
-
ERN
Eritrean nakfa.- See Also:
-
ETB
Ethiopian birr.- See Also:
-
EUR
Euro.- See Also:
-
FJD
Fijian dollar.- See Also:
-
FKP
Falkland Islands pound.- See Also:
-
GBP
Pound sterling.- See Also:
-
GEL
Georgian lari.- See Also:
-
GHS
Ghanaian cedi.- See Also:
-
GIP
Gibraltar pound.- See Also:
-
GMD
Gambian dalasi.- See Also:
-
GNF
Guinean franc.- See Also:
-
GTQ
Guatemalan quetzal.- See Also:
-
GYD
Guyanese dollar.- See Also:
-
HKD
Hong Kong dollar.- See Also:
-
HNL
Honduran lempira.- See Also:
-
HRK
Deprecated.see ISO 4217 amendment 174 (will be removed in 5.0.0)Croatian kuna.As per ISO-4217 amendment number 174, the croatian kuna was replaced by the euro on 2023-01-15. See Croatia and the euro for more information.
- See Also:
-
HTG
Haitian gourde.- See Also:
-
HUF
Hungarian forint.- See Also:
-
IDR
Indonesian rupiah.- See Also:
-
ILS
Israeli new shekel.- See Also:
-
INR
Indian rupee.- See Also:
-
IQD
Iraqi dinar.- See Also:
-
IRR
Iranian rial.- See Also:
-
ISK
Icelandic króna.- See Also:
-
JMD
Jamaican dollar.- See Also:
-
JOD
Jordanian dinar.- See Also:
-
JPY
Japanese yen.- See Also:
-
KES
Kenyan shilling.- See Also:
-
KGS
Kyrgyzstani som.- See Also:
-
KHR
Cambodian riel.- See Also:
-
KMF
Comorian franc.- See Also:
-
KPW
North Korean won.- See Also:
-
KRW
South Korean won.- See Also:
-
KWD
Kuwaiti dinar.- See Also:
-
KYD
Cayman Islands dollar.- See Also:
-
KZT
Kazakhstani tenge.- See Also:
-
LAK
Lao kip.- See Also:
-
LBP
Lebanese pound.- See Also:
-
LKR
Sri Lankan rupee.- See Also:
-
LRD
Liberian dollar.- See Also:
-
LSL
Lesotho loti.- See Also:
-
LYD
Libyan dinar.- See Also:
-
MAD
Moroccan dirham.- See Also:
-
MDL
Moldovan leu.- See Also:
-
MGA
Malagasy ariary.- See Also:
-
MKD
Macedonian denar.- See Also:
-
MMK
Burmese kyat.- See Also:
-
MNT
Mongolian tögrög (or tugrik).- See Also:
-
MOP
Macanese pataca.- See Also:
-
MRU
Mauritanian ouguiya.- See Also:
-
MUR
Mauritian rupee.- See Also:
-
MVR
Maldivian rufiyaa.- See Also:
-
MWK
Malawian kwacha.- See Also:
-
MXN
Mexican peso.- See Also:
-
MXV
Mexican unidad de inversión.The UDI is an inflation adjusted mechanism set by the Central Bank of Mexico according to the variation in the Mexican Consumer Price Index. The value of the UDI is expressed in terms of Mexican Pesos per UDI. It is used to denominate mortgage loans, some bank deposits with maturities of 3 month or more and Government bonds (UDIBONOS).
- See Also:
-
MYR
Malaysian ringgit.- See Also:
-
MZN
Mozambican metical.- See Also:
-
NAD
Namibian dollar.- See Also:
-
NGN
Nigerian naira.- See Also:
-
NIO
Nicaraguan córdoba.- See Also:
-
NOK
Norwegian krone.- See Also:
-
NPR
Nepalese rupee.- See Also:
-
NZD
New Zealand dollar.- See Also:
-
OMR
Omani rial.- See Also:
-
PAB
Panamanian balboa.- See Also:
-
PEN
Peruvian sol.- See Also:
-
PGK
Papua New Guinean kina.- See Also:
-
PHP
Philippine peso.- See Also:
-
PKR
Pakistani rupee.- See Also:
-
PLN
Polish złoty.- See Also:
-
PYG
Paraguayan guaraní.- See Also:
-
QAR
Qatari riyal.- See Also:
-
RON
Romanian leu.- See Also:
-
RSD
Serbian dinar.- See Also:
-
RUB
Russian ruble.- See Also:
-
RWF
Rwandan franc.- See Also:
-
SAR
Saudi riyal.- See Also:
-
SBD
Solomon Islands dollar.- See Also:
-
SCR
Seychellois rupee.- See Also:
-
SDG
Sudanese pound.- See Also:
-
SEK
Swedish króna.- See Also:
-
SGD
Singapore dollar.- See Also:
-
SHP
Saint Helena pound.- See Also:
-
SLE
Sierra Leonean leone.This currency code was introduced by ISO-4217 amendment number 171 and is effective from 1 April 2022 :
The Sierra Leonean LEONE (SLL) is redenominated by removing three (3) zeros from the denominations. A new currency code SLE/925 representing the new valuation (1’000 times old SLL/694) is introduced on 1 st April 2022 for any internal needs during the redenomination process, and is replacing SLL as the official currency code, after the transition period to be determined.
During this transition period, both the old Leone and new Leone will be in physical circulation for at least 90 days.
The Bank of Sierra Leone will adopt the new code in the local system but SLL/694 shall remain in use until further notice.
- Since:
- 3.2.0
- See Also:
-
SLL
Sierra Leonean leone.- See Also:
-
SOS
Somali shilling.- See Also:
-
SRD
Surinamese dollar.- See Also:
-
SSP
South Sudanese pound.- See Also:
-
STN
São Tomé and Príncipe dobra.- See Also:
-
SVC
Salvadoran colón.- See Also:
-
SYP
Syrian pound.- See Also:
-
SZL
Swazi lilangeni.- See Also:
-
THB
Thai baht.- See Also:
-
TJS
Tajikistani somoni.- See Also:
-
TMT
Turkmenistan manat.- See Also:
-
TND
Tunisian dinar.- See Also:
-
TOP
Tongan paʻanga.- See Also:
-
TRY
Turkish lira.- See Also:
-
TTD
Trinidad and Tobago dollar.- See Also:
-
TWD
New Taiwan dollar.- See Also:
-
TZS
Tanzanian shilling.- See Also:
-
UAH
Ukrainian hryvnia.- See Also:
-
UGX
Ugandan shilling.- See Also:
-
USD
United States dollar.- See Also:
-
USN
United States dollar (next day) (funds code)."Next day" funds are immediately available for transfer in like funds, and, subject to settlement, available the next business day for same day funds transfer or withdrawal in cash.
- See Also:
-
USS
United States dollar (same day) (funds code).- See Also:
-
UYI
Uruguay Peso en Unidades Indexadas (URUIURUI) (funds code).The UYI (UI) is used for issuance of debt instruments by the Uruguayan government in the international global bond market. It is calculated based on an established methodology using underlying inflationary statistics in the Uruguayan market (introduced in 2002).
- See Also:
-
UYU
Uruguayan peso.- See Also:
-
UYW
Uruguayan Unidad Previsional (Fund currency).The Unidad Previsional (UP) is a daily accounting unit that tracks changes to the nominal wage index. The value of UP is expressed in terms of Uruguayan Pesos per UP, with the initial value of one peso (UYU 1.00) on 04/30/2018. The institution responsible for the calculation and publication is the Instituto Nacional de Estadística (National Bureau of Statistics) according to Law 19,608.
- See Also:
-
UZS
Uzbekistani soʻm.- See Also:
-
VED
Venezuelan bolívar digital (as designated on Wikipedia).This currency code was introduced by ISO-4217 amendment number 170 and is effective from 1 October 2021 :
The Bolívar Soberano (VES) is redenominated by removing six zeros from the denominations. A new currency code VED/926 representing the new valuation (1,000,000 times old VES/928) is introduced on 1 October 2021 for any internal needs during the redenomination process, but is not replacing VES as the official currency code. The Central Bank of Venezuela will not adopt the new codes in the local system, VES/928 remains in use.
The actual currency code VES/928 remains the valid code after 1 October 2021 to use in any future transactions to indicate the redenominated Bolívar Soberano.
- Since:
- 3.2.0
- See Also:
-
VES
Venezuelan bolívar soberano.- See Also:
-
VND
Vietnamese đồng.- See Also:
-
VUV
Vanuatu vatu.- See Also:
-
WST
Samoan tālā.- See Also:
-
XAF
Central African CFA franc.- See Also:
-
XAG
Silver.- See Also:
-
XAU
Gold.- See Also:
-
XBA
European Composite Unit (EURCO).- See Also:
-
XBB
European Monetary Unit (E.M.U.-6).- See Also:
-
XBC
European Unit of Account 9 (E.U.A.-9).- See Also:
-
XBD
European Unit of Account 17 (E.U.A.-17).- See Also:
-
XCD
Eastern Caribbean dollar.- See Also:
-
XDR
Special drawing rights.- See Also:
-
XOF
West African CFA franc.- See Also:
-
XPD
Palladium.- See Also:
-
XPF
CFP franc.- See Also:
-
XPT
Platinum.- See Also:
-
XSU
The SUCRE (a.k.a Sistema Unitario de Compensación Regional, or Unified System for Regional Compensation).- See Also:
-
XTS
Code reserved for testing.- See Also:
-
XUA
ADB (African Development Bank) Unit of Account.- See Also:
-
XXX
No currency.- See Also:
-
YER
Yemeni rial.- See Also:
-
ZAR
South African rand.- See Also:
-
ZMW
Zambian kwacha.- See Also:
-
ZWL
Zimbabwean dollar.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getAlphabeticCode
Returns this currency ISO 4217 alphabetical code.- Returns:
- a non-null and 3 characters length string
-
getNumericCode
public int getNumericCode()Returns this currency ISO 4217 numeric code.- Returns:
- an integer
-
getMinorUnit
Returns this currency minor unit, if applicable.- Returns:
- an Integer or null if this not applicable
-
getCategory
Returns this currencycategory.- Returns:
- a non-null
IsoCurrency.Category
-
getCountries
Returns the countries that are using this currency.- Returns:
- a non-null but may be empty set of countries
-
fromAlphabeticCode
Translate the given ISO 4217 alphabetical code to an IsoCurrency.This method is neither sensitive to the case nor to the presence of leading or trailing spaces.
- Parameters:
code- a non-null string- Returns:
- the currency having the given ISO 4217 alphabetical code, or null if it does not exist
-
fromNumericCode
Translate the given ISO 4217 numeric code to an IsoCurrency.- Parameters:
code- an int- Returns:
- the currency having the given ISO 4217 numerical code, or null if it does not exist
-
allOf
Get currencies of the given category.- Parameters:
category- a non-null category- Returns:
- a non-null set of currencies
- Throws:
NullPointerException- if the given category isnull
-