public class CurrencyPair extends Serializer
NULL_SER_STRING, VERSION
Constructor and Description |
---|
CurrencyPair(byte[] ab)
CurrencyPair de-serialization from input byte array
|
CurrencyPair(java.lang.String strNumCcy,
java.lang.String strDenomCcy,
java.lang.String strQuoteCcy,
double dblPIPFactor)
Constructs the currency pair from the numerator currency, the denominator currency, the quote
currency, and the PIP Factor
|
Modifier and Type | Method and Description |
---|---|
Serializer |
deserialize(byte[] ab)
De-serialize from a byte array.
|
java.lang.String |
getCode()
Gets the currency pair code
|
java.lang.String |
getDenomCcy()
Gets the denominator currency
|
java.lang.String |
getFieldDelimiter()
Returns the Field Delimiter String
|
java.lang.String |
getNumCcy()
Gets the numerator currency
|
java.lang.String |
getObjectTrailer()
Returns the Object Trailer String
|
double |
getPIPFactor()
Gets the PIP Factor
|
java.lang.String |
getQuoteCcy()
Gets the quote currency
|
static void |
main(java.lang.String[] astrArgs) |
byte[] |
serialize()
Serialize into a byte array.
|
getCollectionKeyValueDelimiter, getCollectionMultiLevelKeyDelimiter, getCollectionRecordDelimiter
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 CurrencyPair(byte[] ab) throws java.lang.Exception
ab
- Byte Arrayjava.lang.Exception
- Thrown if CurrencyPair cannot be properly de-serializedpublic java.lang.String getNumCcy()
public java.lang.String getDenomCcy()
public java.lang.String getQuoteCcy()
public java.lang.String getCode()
public double getPIPFactor()
public java.lang.String getFieldDelimiter()
Serializer
getFieldDelimiter
in class Serializer
public java.lang.String getObjectTrailer()
Serializer
getObjectTrailer
in class Serializer
public byte[] serialize()
Serializer
serialize
in class Serializer
public Serializer deserialize(byte[] ab)
Serializer
deserialize
in class Serializer
public static void main(java.lang.String[] astrArgs) throws java.lang.Exception
java.lang.Exception