Class ResolvedSwapTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwapTrade>
-
- com.opengamma.strata.product.swap.ResolvedSwapTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedSwapTrade>
- Enclosing class:
- ResolvedSwapTrade
public static final class ResolvedSwapTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwapTrade>
The bean-builder forResolvedSwapTrade.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedSwapTradebuild()Objectget(String propertyName)ResolvedSwapTrade.Builderinfo(TradeInfo info)Sets the additional trade information, defaulted to an empty instance.ResolvedSwapTrade.Builderproduct(ResolvedSwap product)Sets the resolved Swap product.ResolvedSwapTrade.Builderset(String propertyName, Object newValue)ResolvedSwapTrade.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ResolvedSwapTrade>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwapTrade>
-
set
public ResolvedSwapTrade.Builder set(String propertyName, Object newValue)
-
set
public ResolvedSwapTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<ResolvedSwapTrade>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwapTrade>
-
build
public ResolvedSwapTrade build()
-
info
public ResolvedSwapTrade.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 ResolvedSwapTrade.Builder product(ResolvedSwap product)
Sets the resolved Swap product.The product captures the contracted financial details of the trade.
- Parameters:
product- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwapTrade>
-
-