public static final class SecurityTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SecurityTrade>
SecurityTrade.| Modifier and Type | Method and Description |
|---|---|
SecurityTrade |
build() |
Object |
get(String propertyName) |
SecurityTrade.Builder |
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.
|
SecurityTrade.Builder |
price(double price)
Sets the price agreed when the trade occurred.
|
SecurityTrade.Builder |
quantity(double quantity)
Sets the quantity that was traded.
|
SecurityTrade.Builder |
securityId(SecurityId securityId)
Sets the identifier of the security that was traded.
|
SecurityTrade.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
SecurityTrade.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<SecurityTrade>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SecurityTrade>public SecurityTrade.Builder set(String propertyName, Object newValue)
public SecurityTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<SecurityTrade>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SecurityTrade>public SecurityTrade build()
public SecurityTrade.Builder info(TradeInfo info)
This allows additional information to be attached to the trade.
info - the new value, not nullpublic SecurityTrade.Builder securityId(SecurityId securityId)
This identifier uniquely identifies the security within the system.
securityId - the new value, not nullpublic SecurityTrade.Builder quantity(double quantity)
This will be positive if buying and negative if selling.
quantity - the new valuepublic SecurityTrade.Builder price(double price)
This is the price agreed when the trade occurred.
price - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SecurityTrade>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.