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:
*
* - Euro (EUR)
* - Pound sterling (GBP)
* - Australian dollar (AUD)
* - New Zealand dollar (NZD)
* - United States dollar (USD)
* - Canadian dollar (CAD)
* - Swiss franc (CHF)
* - Japanese yen (JPY)
*
*/
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