Package com.opengamma.strata.product.fx
Class ResolvedFxSwapTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSwapTrade>
-
- com.opengamma.strata.product.fx.ResolvedFxSwapTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedFxSwapTrade>
- Enclosing class:
- ResolvedFxSwapTrade
public static final class ResolvedFxSwapTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSwapTrade>
The bean-builder forResolvedFxSwapTrade
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedFxSwapTrade
build()
Object
get(String propertyName)
ResolvedFxSwapTrade.Builder
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.ResolvedFxSwapTrade.Builder
product(ResolvedFxSwap product)
Sets the resolved FX swap product.ResolvedFxSwapTrade.Builder
set(String propertyName, Object newValue)
ResolvedFxSwapTrade.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ResolvedFxSwapTrade>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSwapTrade>
-
set
public ResolvedFxSwapTrade.Builder set(String propertyName, Object newValue)
-
set
public ResolvedFxSwapTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ResolvedFxSwapTrade>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSwapTrade>
-
build
public ResolvedFxSwapTrade build()
-
info
public ResolvedFxSwapTrade.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 ResolvedFxSwapTrade.Builder product(ResolvedFxSwap product)
Sets the resolved FX 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:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxSwapTrade>
-
-