Class BondFutureOptionTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFutureOptionTrade>
-
- com.opengamma.strata.product.bond.BondFutureOptionTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<BondFutureOptionTrade>
- Enclosing class:
- BondFutureOptionTrade
public static final class BondFutureOptionTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFutureOptionTrade>
The bean-builder forBondFutureOptionTrade
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BondFutureOptionTrade
build()
Object
get(String propertyName)
BondFutureOptionTrade.Builder
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.BondFutureOptionTrade.Builder
price(double price)
Sets the price that was traded, in decimal form.BondFutureOptionTrade.Builder
product(BondFutureOption product)
Sets the option that was traded.BondFutureOptionTrade.Builder
quantity(double quantity)
Sets the quantity that was traded.BondFutureOptionTrade.Builder
set(String propertyName, Object newValue)
BondFutureOptionTrade.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<BondFutureOptionTrade>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFutureOptionTrade>
-
set
public BondFutureOptionTrade.Builder set(String propertyName, Object newValue)
-
set
public BondFutureOptionTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<BondFutureOptionTrade>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFutureOptionTrade>
-
build
public BondFutureOptionTrade build()
-
info
public BondFutureOptionTrade.Builder info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.This allows additional information to be attached to the trade. The trade date is required when calling
BondFutureOptionTrade.resolve(ReferenceData)
.- Parameters:
info
- the new value, not null- Returns:
- this, for chaining, not null
-
product
public BondFutureOptionTrade.Builder product(BondFutureOption product)
Sets the option that was traded.The product captures the contracted financial details of the trade.
- Parameters:
product
- the new value, not null- Returns:
- this, for chaining, not null
-
quantity
public BondFutureOptionTrade.Builder quantity(double quantity)
Sets the quantity that was traded.This is the number of contracts that were traded. This will be positive if buying and negative if selling.
- Parameters:
quantity
- the new value- Returns:
- this, for chaining, not null
-
price
public BondFutureOptionTrade.Builder price(double price)
Sets the price that was traded, in decimal form.This is the price agreed when the trade occurred.
- Parameters:
price
- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFutureOptionTrade>
-
-