Class BillTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BillTrade>
-
- com.opengamma.strata.product.bond.BillTrade.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BillTrade
build()
Object
get(String propertyName)
BillTrade.Builder
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.BillTrade.Builder
price(double price)
Sets the price at which the bill was traded, in decimal form.BillTrade.Builder
product(Bill product)
Sets the bill that was traded.BillTrade.Builder
quantity(double quantity)
Sets the quantity that was traded.BillTrade.Builder
set(String propertyName, Object newValue)
BillTrade.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
Method Detail
-
set
public BillTrade.Builder set(String propertyName, Object newValue)
-
set
public BillTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
-
build
public BillTrade build()
-
info
public BillTrade.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 BillTrade.Builder product(Bill product)
Sets the bill 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 BillTrade.Builder quantity(double quantity)
Sets the quantity that was traded.This will be positive if buying and negative if selling.
- Parameters:
quantity
- the new value- Returns:
- this, for chaining, not null
-
price
public BillTrade.Builder price(double price)
Sets the price at which the bill was traded, in decimal form.- Parameters:
price
- the new value- Returns:
- this, for chaining, not null
-
-