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