Class SwapTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwapTrade>
-
- com.opengamma.strata.product.swap.SwapTrade.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SwapTrade
build()
Object
get(String propertyName)
SwapTrade.Builder
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.SwapTrade.Builder
product(Swap product)
Sets the swap product that was agreed when the trade occurred.SwapTrade.Builder
set(String propertyName, Object newValue)
SwapTrade.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
Method Detail
-
set
public SwapTrade.Builder set(String propertyName, Object newValue)
-
set
public SwapTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
-
build
public SwapTrade build()
-
info
public SwapTrade.Builder info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.This allows additional information to be attached to the trade.
- Parameters:
info
- the new value, not null- Returns:
- this, for chaining, not null
-
product
public SwapTrade.Builder product(Swap product)
Sets the swap product that was agreed when the trade occurred.The product captures the contracted financial details of the trade.
- Parameters:
product
- the new value, not null- Returns:
- this, for chaining, not null
-
-