public class FXSpotContract extends FXSpot
NULL_SER_STRING, VERSION
Constructor and Description |
---|
FXSpotContract(byte[] ab)
FXSpotContract de-serialization from input byte array
|
FXSpotContract(JulianDate dtSpot,
CurrencyPair ccyPair)
Constructor: Create the FX spot object from the spot date and the currency pair.
|
Modifier and Type | Method and Description |
---|---|
Serializer |
deserialize(byte[] ab)
De-serialize from a byte array.
|
CurrencyPair |
getCcyPair()
Get the currency pair
|
double |
getSpotDate()
Get the spot date
|
static void |
main(java.lang.String[] astrArgs) |
byte[] |
serialize()
Serialize into a byte array.
|
getCollectionKeyValueDelimiter, getCollectionMultiLevelKeyDelimiter, getCollectionRecordDelimiter, getFieldDelimiter, getObjectTrailer
public FXSpotContract(JulianDate dtSpot, CurrencyPair ccyPair) throws java.lang.Exception
dtSpot
- Spot dateccyPair
- CurrencyPairjava.lang.Exception
- Thrown on invalid parameterspublic FXSpotContract(byte[] ab) throws java.lang.Exception
ab
- Byte Arrayjava.lang.Exception
- Thrown if FXSpotContract cannot be properly de-serializedpublic double getSpotDate()
FXSpot
getSpotDate
in class FXSpot
public CurrencyPair getCcyPair()
FXSpot
getCcyPair
in class FXSpot
public byte[] serialize()
Serializer
serialize
in class Serializer
public Serializer deserialize(byte[] ab)
Serializer
deserialize
in class Serializer
public static final void main(java.lang.String[] astrArgs) throws java.lang.Exception
java.lang.Exception