Class CustomFieldValues.Builder
java.lang.Object
com.caplin.motif.fx.ret.common.customfield.CustomFieldValues.Builder
- Enclosing class:
- CustomFieldValues
Helper class that is used to construct a
CustomFieldValues
object.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a CustomFieldValues object.withAmount
(String amount) Add the amount.withAssetClass
(AssetClass assetClass) Add the AssetClass.withAssetClass
(String assetClass) Add the asset class.withClientTimePriceClicked
(String clientTimePriceClicked) Add the time the client clicked on the price.withClientTimePriceOnScreen
(String clientTimePriceOnScreen) Add the time the price was displayed on the client's screen.withFarAmount
(String amount) Add the far amount.withLastEditedBy
(String lastEditor) Add the last edited by.withNearAmount
(String amount) Add the near amount.withQuoteId
(String quoteId) Add the quote ID.withServerTimeConnectionReceived
(String serverTimeConnectionReceived) Add the time the server received a connection.withServerTimePriceReceived
(String serverTimePriceReceived) Add the time the server received the price.withServerTimeSettingUpTrade
(String serverTimeSettingUpTrade) Add the time the server took setting up the trade.withServerTimeTradeReceived
(String serverTimeTradeReceived) Add the time the server received the trade.withServerTimeTradeSubmitted
(String serverTimeTradeSubmitted) Add the time the server submitted the trade.withServerTimeWaitingForConnection
(String serverTimeWaitingForConnection) Add the time the server has spent waiting for a connection.withTradingProtocol
(TradingProtocol tradingProtocol) Add the TradingProtocolwithTradingProtocol
(String tradingProtocol) Add the trading protocol.Add the unit.withUsername
(String username) Add the username.Add a custom key/value pair.withValues
(Map<String, String> values) Add a map of custom key/values.
-
Method Details
-
withUsername
Add the username. -
withTradingProtocol
Add the TradingProtocol -
withTradingProtocol
Add the trading protocol. -
withAssetClass
Add the AssetClass. -
withAssetClass
Add the asset class. -
withAmount
Add the amount. -
withNearAmount
Add the near amount. -
withFarAmount
Add the far amount. -
withUnit
Add the unit. -
withClientTimePriceOnScreen
Add the time the price was displayed on the client's screen. -
withClientTimePriceClicked
Add the time the client clicked on the price. -
withServerTimePriceReceived
Add the time the server received the price. -
withServerTimeTradeReceived
Add the time the server received the trade. -
withServerTimeConnectionReceived
public CustomFieldValues.Builder withServerTimeConnectionReceived(String serverTimeConnectionReceived) Add the time the server received a connection. -
withServerTimeWaitingForConnection
public CustomFieldValues.Builder withServerTimeWaitingForConnection(String serverTimeWaitingForConnection) Add the time the server has spent waiting for a connection. -
withServerTimeSettingUpTrade
Add the time the server took setting up the trade. -
withServerTimeTradeSubmitted
Add the time the server submitted the trade. -
withQuoteId
Add the quote ID. -
withLastEditedBy
Add the last edited by. -
withValue
Add a custom key/value pair. -
withValues
Add a map of custom key/values. -
build
Returns a CustomFieldValues object.- Returns:
- The new
CustomFieldValues
object.
-