public class ImmutableRFSTradeConfirmationEvent extends RFSTradeConfirmationEvent
RFSTradeConfirmationEvent.Builder, RFSTradeConfirmationEvent.LegBuilder
TRADE_CONFIRMATION
Modifier | Constructor and Description |
---|---|
protected |
ImmutableRFSTradeConfirmationEvent(com.google.common.collect.ImmutableMap<String,String> fields) |
Modifier and Type | Method and Description |
---|---|
void |
addField(String fieldName,
String value)
Deprecated.
|
void |
addFields(Map<String,String> newFields)
Deprecated.
|
protected void |
addTransparentFields(RFSTrade trade) |
boolean |
equals(Object o) |
String |
getField(String fieldName)
Returns the field value with the specified field name.
|
Map<String,String> |
getFields()
Returns the current fields that have been added to this event.
|
int |
hashCode() |
void |
setAccount(String account)
Set the account
|
void |
setDealtCurrency(String dealtCurrency)
Set the dealt currency of the orders instrument
|
void |
setFarFields(String farAllInRate,
String farFwdPips,
String farContraAmount)
Sets the far trade confirmation fields for a SWAP Trade.
|
void |
setTimeOptionRiskValues(String riskDate,
String riskTenor)
Set the users time options risk date and risk tenor.
|
void |
setToboUser(String toboUser)
Set the tobo user to the client and toboUser field.
|
void |
setTradeDate(String tradeDate)
Set the execution date of the order
|
String |
toString() |
builder
getEventName
public String getField(String fieldName)
ResponderEvent
getField
in interface BaseResponderEvent
getField
in class ResponderEvent<RFSTrade>
fieldName
- The name of the fieldpublic Map<String,String> getFields()
ResponderEvent
getFields
in interface BaseResponderEvent
getFields
in class ResponderEvent<RFSTrade>
public boolean equals(Object o)
equals
in class ResponderEvent<RFSTrade>
public int hashCode()
hashCode
in class ResponderEvent<RFSTrade>
public String toString()
toString
in class ResponderEvent<RFSTrade>
public final void setTimeOptionRiskValues(String riskDate, String riskTenor)
RFSTradeConfirmationEvent
setTimeOptionRiskValues
in class RFSTradeConfirmationEvent
riskDate
- - the date where the maximum risk is incurred YYYYMMDDriskTenor
- - The tenor of the risk date. E.g 1M, 2M, 3M, SPOTpublic final void setFarFields(String farAllInRate, String farFwdPips, String farContraAmount)
RFSTradeConfirmationEvent
setFarFields
in class RFSTradeConfirmationEvent
farAllInRate
- The all in rate of the far leg.farFwdPips
- The fwd pips of the far leg.farContraAmount
- The far contra amount.public final void setTradeDate(String tradeDate)
RFSTradeConfirmationEvent
setTradeDate
in class RFSTradeConfirmationEvent
tradeDate
- The trade datepublic final void setDealtCurrency(String dealtCurrency)
RFSTradeConfirmationEvent
setDealtCurrency
in class RFSTradeConfirmationEvent
dealtCurrency
- The dealt currencypublic final void setToboUser(String toboUser)
RFSTradeConfirmationEvent
setToboUser
in class RFSTradeConfirmationEvent
toboUser
- The tobo userpublic final void setAccount(String account)
RFSTradeConfirmationEvent
setAccount
in class RFSTradeConfirmationEvent
account
- The accountprotected final void addTransparentFields(RFSTrade trade)
addTransparentFields
in class ResponderEvent<RFSTrade>
@Deprecated public final void addField(String fieldName, String value)
ResponderEvent
addField
in class ResponderEvent<RFSTrade>
fieldName
- The field name to add.value
- The value to add for the field name.@Deprecated public final void addFields(Map<String,String> newFields)
ResponderEvent
addFields
in class ResponderEvent<RFSTrade>
newFields
- the new fields to add. Any existing fields with the same
keys will be overridden.Copyright © 2015 Caplin Systems.