Package com.opengamma.strata.product.etd
Class EtdOptionTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdOptionTrade>
-
- com.opengamma.strata.product.etd.EtdOptionTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<EtdOptionTrade>
- Enclosing class:
- EtdOptionTrade
public static final class EtdOptionTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdOptionTrade>
The bean-builder forEtdOptionTrade
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EtdOptionTrade
build()
Object
get(String propertyName)
EtdOptionTrade.Builder
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.EtdOptionTrade.Builder
price(double price)
Sets the price that was traded, in decimal form.EtdOptionTrade.Builder
quantity(double quantity)
Sets the quantity that was traded.EtdOptionTrade.Builder
security(EtdOptionSecurity security)
Sets the security that was traded.EtdOptionTrade.Builder
set(String propertyName, Object newValue)
EtdOptionTrade.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<EtdOptionTrade>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdOptionTrade>
-
set
public EtdOptionTrade.Builder set(String propertyName, Object newValue)
-
set
public EtdOptionTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<EtdOptionTrade>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdOptionTrade>
-
build
public EtdOptionTrade build()
-
info
public EtdOptionTrade.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
-
security
public EtdOptionTrade.Builder security(EtdOptionSecurity security)
Sets the security that was traded.- Parameters:
security
- the new value, not null- Returns:
- this, for chaining, not null
-
quantity
public EtdOptionTrade.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 EtdOptionTrade.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<EtdOptionTrade>
-
-