Package com.opengamma.strata.product.fx
Class FxSingleTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleTrade>
-
- com.opengamma.strata.product.fx.FxSingleTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<FxSingleTrade>
- Enclosing class:
- FxSingleTrade
public static final class FxSingleTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleTrade>
The bean-builder forFxSingleTrade.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FxSingleTradebuild()Objectget(String propertyName)FxSingleTrade.Builderinfo(TradeInfo info)Sets the additional trade information, defaulted to an empty instance.FxSingleTrade.Builderproduct(FxSingle product)Sets the product that was agreed when the trade occurred.FxSingleTrade.Builderset(String propertyName, Object newValue)FxSingleTrade.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<FxSingleTrade>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleTrade>
-
set
public FxSingleTrade.Builder set(String propertyName, Object newValue)
-
set
public FxSingleTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<FxSingleTrade>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleTrade>
-
build
public FxSingleTrade build()
-
info
public FxSingleTrade.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 FxSingleTrade.Builder product(FxSingle product)
Sets the 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
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleTrade>
-
-