public class CurrencyPair extends Object
Constructor and Description |
---|
CurrencyPair(String ccy1,
String ccy2) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsCcy(String ccy) |
CurrencyPair |
createInverse()
Returns a new CurrencyPair ccy2 / ccy1 (useful for FxRate).
|
boolean |
equals(Object obj) |
Optional<String> |
findCommonCcy(CurrencyPair otherPair)
Given another CurrencyPair find the common Currency (if any) or the first if both are identical
|
String |
getCcy1() |
String |
getCcy2() |
int |
hashCode() |
static CurrencyPair |
of(String ccy1,
String ccy2) |
String |
toString() |
public CurrencyPair(String ccy1, String ccy2)
IllegalArgumentException
- if ccy1 or ccy2 are blank.public static CurrencyPair of(String ccy1, String ccy2)
public String getCcy1()
public String getCcy2()
public boolean containsCcy(String ccy)
public Optional<String> findCommonCcy(CurrencyPair otherPair)
otherPair
- public CurrencyPair createInverse()
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.