Class Currencies

java.lang.Object
org.episteme.social.economics.money.Currencies

public final class Currencies extends Object
Registry of world currencies based on ISO 4217 standard.

This class provides static currency constants and a registry for looking up currencies by code. Currency codes follow the ISO 4217 international standard.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Field Details

    • USD

      public static final Currency USD
      United States Dollar
    • EUR

      public static final Currency EUR
      Euro
    • JPY

      public static final Currency JPY
      Japanese Yen
    • GBP

      public static final Currency GBP
      British Pound Sterling
    • CHF

      public static final Currency CHF
      Swiss Franc
    • CAD

      public static final Currency CAD
      Canadian Dollar
    • AUD

      public static final Currency AUD
      Australian Dollar
    • CNY

      public static final Currency CNY
      Chinese Yuan Renminbi
    • HKD

      public static final Currency HKD
      Hong Kong Dollar
    • NZD

      public static final Currency NZD
      New Zealand Dollar
    • SGD

      public static final Currency SGD
      Singapore Dollar
    • KRW

      public static final Currency KRW
      South Korean Won
    • INR

      public static final Currency INR
      Indian Rupee
    • RUB

      public static final Currency RUB
      Russian Ruble
    • BRL

      public static final Currency BRL
      Brazilian Real
    • MXN

      public static final Currency MXN
      Mexican Peso
    • SEK

      public static final Currency SEK
      Swedish Krona
    • NOK

      public static final Currency NOK
      Norwegian Krone
    • DKK

      public static final Currency DKK
      Danish Krone
    • PLN

      public static final Currency PLN
      Polish Zloty
    • CZK

      public static final Currency CZK
      Czech Koruna
    • HUF

      public static final Currency HUF
      Hungarian Forint
    • THB

      public static final Currency THB
      Thai Baht
    • MYR

      public static final Currency MYR
      Malaysian Ringgit
    • IDR

      public static final Currency IDR
      Indonesian Rupiah
    • PHP

      public static final Currency PHP
      Philippine Peso
    • VND

      public static final Currency VND
      Vietnamese Dong
    • TWD

      public static final Currency TWD
      Taiwan Dollar
    • AED

      public static final Currency AED
      UAE Dirham
    • SAR

      public static final Currency SAR
      Saudi Riyal
    • ILS

      public static final Currency ILS
      Israeli Shekel
    • TRY

      public static final Currency TRY
      Turkish Lira
    • ZAR

      public static final Currency ZAR
      South African Rand
    • EGP

      public static final Currency EGP
      Egyptian Pound
    • ARS

      public static final Currency ARS
      Argentine Peso
    • CLP

      public static final Currency CLP
      Chilean Peso
    • COP

      public static final Currency COP
      Colombian Peso
    • PEN

      public static final Currency PEN
      Peruvian Sol
    • BTC

      public static final Currency BTC
      Bitcoin
    • ETH

      public static final Currency ETH
      Ethereum
    • XAU

      public static final Currency XAU
      Gold (troy ounce)
    • XAG

      public static final Currency XAG
      Silver (troy ounce)
    • XPT

      public static final Currency XPT
      Platinum
    • XPD

      public static final Currency XPD
      Palladium
    • XDR

      public static final Currency XDR
      SDR (Special Drawing Rights - IMF)
    • XTS

      public static final Currency XTS
      Testing currency
    • XXX

      public static final Currency XXX
      No currency
    • US_DOLLAR

      public static final Currency US_DOLLAR
      US Dollar alias
    • EURO

      public static final Currency EURO
      Euro alias
    • YEN

      public static final Currency YEN
      Japanese Yen alias
    • POUND_STERLING

      public static final Currency POUND_STERLING
      British Pound alias
  • Method Details

    • forCode

      public static Currency forCode(String code)
      Returns the currency for the given ISO code.
      Parameters:
      code - the ISO 4217 currency code
      Returns:
      the currency, or null if not found
    • requireCode

      public static Currency requireCode(String code)
      Returns the currency for the given ISO code, throwing if not found.
      Parameters:
      code - the ISO 4217 currency code
      Returns:
      the currency
      Throws:
      IllegalArgumentException - if currency not found
    • all

      public static Collection<Currency> all()
      Returns all registered currencies.
      Returns:
      unmodifiable collection of currencies
    • isKnown

      public static boolean isKnown(String code)
      Checks if a currency code is registered.
      Parameters:
      code - the currency code
      Returns:
      true if registered
    • count

      public static int count()
      Returns the number of registered currencies.
      Returns:
      the count