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