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