public class MajorCurrencyRankingImpl extends Object implements MajorCurrencyRanking
Constructor and Description |
---|
MajorCurrencyRankingImpl(List<String> orderedCurrencies)
User can define their own ordered list of major currencies
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMarketConvention(CurrencyPair pair)
returns true if the pair.ccy1 is the major one for the given currency pair.
|
boolean |
isMarketConvention(String ccy1,
String ccy2)
returns true if the ccy1 is the major one for the given currency pair.
|
String |
selectMajorCurrency(CurrencyPair pair)
Given a CurrencyPair, return the major Currency if there is one, otherwise returns the first currency.
|
String |
selectMajorCurrency(String ccy1,
String ccy2)
Given 2 currencies, return the major one if there is one, otherwise returns the first currency.
|
public String selectMajorCurrency(String ccy1, String ccy2)
selectMajorCurrency
in interface MajorCurrencyRanking
public String selectMajorCurrency(CurrencyPair pair)
selectMajorCurrency
in interface MajorCurrencyRanking
public boolean isMarketConvention(String ccy1, String ccy2)
isMarketConvention
in interface MajorCurrencyRanking
public boolean isMarketConvention(CurrencyPair pair)
isMarketConvention
in interface MajorCurrencyRanking
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.