Enum IsoCurrency

java.lang.Object
java.lang.Enum<IsoCurrency>
fr.marcwrobel.jbanking.IsoCurrency
All Implemented Interfaces:
Serializable, Comparable<IsoCurrency>, java.lang.constant.Constable

@LastVerification("2023-01-07") public enum IsoCurrency extends Enum<IsoCurrency>
The currencies having an ISO 4217 code.

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 Classes
    Modifier and Type
    Class
    Description
    static enum 

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    United 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 Type
    Method
    Description
    Get currencies of the given category.
    Translate the given ISO 4217 alphabetical code to an IsoCurrency.
    fromNumericCode(int code)
    Translate the given ISO 4217 numeric code to an IsoCurrency.
    Returns this currency ISO 4217 alphabetical code.
    Returns this currency category.
    Returns the countries that are using this currency.
    Returns this currency minor unit, if applicable.
    int
    Returns this currency ISO 4217 numeric code.
    Returns the enum constant of this type with the specified name.
    static IsoCurrency[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait