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