All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.objectlab.kit.fxcalc.StandardMajorCurrencyRanking Maven / Gradle / Ivy

package net.objectlab.kit.fxcalc;

import java.util.Arrays;

/**
 * Utility class to determine the market convention for the FX Rate for a given currency pair.
 * See https://en.wikipedia.org/wiki/Currency_pair, Although there is no standards-setting body or ruling organization,
 * the established priority ranking of the major currencies is:
 * 
    *
  1. Euro (EUR)
  2. *
  3. Pound sterling (GBP)
  4. *
  5. Australian dollar (AUD)
  6. *
  7. New Zealand dollar (NZD)
  8. *
  9. United States dollar (USD)
  10. *
  11. Canadian dollar (CAD)
  12. *
  13. Swiss franc (CHF)
  14. *
  15. Japanese yen (JPY)
  16. *
*/ public final class StandardMajorCurrencyRanking extends MajorCurrencyRankingImpl { private static final MajorCurrencyRanking DEFAULT = new StandardMajorCurrencyRanking(); public static MajorCurrencyRanking getDefault() { return DEFAULT; } private StandardMajorCurrencyRanking() { super(Arrays.asList("EUR", "GBP", "AUD", "NZD", "USD", "CAD", "CHF", "JPY")); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy