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 BondFutureOptionTradebuild()Objectget(String propertyName)BondFutureOptionTrade.Builderinfo(TradeInfo info)Sets the additional trade information, defaulted to an empty instance.BondFutureOptionTrade.Builderprice(double price)Sets the price that was traded, in decimal form.BondFutureOptionTrade.Builderproduct(BondFutureOption product)Sets the option that was traded.BondFutureOptionTrade.Builderquantity(double quantity)Sets the quantity that was traded.BondFutureOptionTrade.Builderset(String propertyName, Object newValue)BondFutureOptionTrade.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<BondFutureOptionTrade>- Overrides:
getin 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:
setin interfaceorg.joda.beans.BeanBuilder<BondFutureOptionTrade>- Overrides:
setin 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:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFutureOptionTrade>
-
-