| Modifier and Type | Method and 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(org.joda.beans.MetaProperty<?> property,
Object value) |
BillTrade.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public BillTrade.Builder set(String propertyName, Object newValue)
public BillTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
public BillTrade build()
public BillTrade.Builder info(TradeInfo info)
This allows additional information to be attached to the trade.
info - the new value, not nullpublic BillTrade.Builder product(Bill product)
The product captures the contracted financial details of the trade.
product - the new value, not nullpublic BillTrade.Builder quantity(double quantity)
This will be positive if buying and negative if selling.
quantity - the new valuepublic BillTrade.Builder price(double price)
price - the new valueCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.