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 BillTradebuild()Objectget(String propertyName)BillTrade.Builderinfo(TradeInfo info)Sets the additional trade information, defaulted to an empty instance.BillTrade.Builderprice(double price)Sets the price at which the bill was traded, in decimal form.BillTrade.Builderproduct(Bill product)Sets the bill that was traded.BillTrade.Builderquantity(double quantity)Sets the quantity that was traded.BillTrade.Builderset(String propertyName, Object newValue)BillTrade.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
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
-
-