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 SwapTradebuild()Objectget(String propertyName)SwapTrade.Builderinfo(TradeInfo info)Sets the additional trade information, defaulted to an empty instance.SwapTrade.Builderproduct(Swap product)Sets the swap product that was agreed when the trade occurred.SwapTrade.Builderset(String propertyName, Object newValue)SwapTrade.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
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
-
-