public class CurrencyPair
extends java.lang.Object
Constructor and Description |
---|
CurrencyPair(java.lang.String strNumCcy,
java.lang.String strDenomCcy,
java.lang.String strQuoteCcy,
double dblPIPFactor)
Construct the currency pair from the numerator currency, the denominator currency, the quote
currency, and the PIP Factor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
code()
Get the currency pair code
|
java.lang.String |
denomCcy()
Get the denominator currency
|
static CurrencyPair |
FromCode(java.lang.String strCode)
Construct the Currency Pair from the Code
|
java.lang.String |
inverseCode()
Get the inverse currency pair code
|
java.lang.String |
numCcy()
Get the numerator currency
|
double |
pipFactor()
Get the PIP Factor
|
java.lang.String |
quoteCcy()
Get the quote currency
|
java.lang.String |
toString() |
public CurrencyPair(java.lang.String strNumCcy, java.lang.String strDenomCcy, java.lang.String strQuoteCcy, double dblPIPFactor) throws java.lang.Exception
strNumCcy
- Numerator currencystrDenomCcy
- Denominator currencystrQuoteCcy
- Quote CurrencydblPIPFactor
- PIP Factorjava.lang.Exception
- Thrown if the inputs are invalidpublic static final CurrencyPair FromCode(java.lang.String strCode)
strCode
- Currency Pair Codepublic java.lang.String numCcy()
public java.lang.String denomCcy()
public java.lang.String quoteCcy()
public java.lang.String code()
public java.lang.String inverseCode()
public double pipFactor()
public java.lang.String toString()
toString
in class java.lang.Object