public static final class BillPosition.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BillPosition>
BillPosition.| Modifier and Type | Method and Description |
|---|---|
BillPosition |
build() |
Object |
get(String propertyName) |
BillPosition.Builder |
info(PositionInfo info)
Sets the additional position information, defaulted to an empty instance.
|
BillPosition.Builder |
longQuantity(double longQuantity)
Sets the long quantity of the security.
|
BillPosition.Builder |
product(Bill product)
Sets the bill that was traded.
|
BillPosition.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
BillPosition.Builder |
set(String propertyName,
Object newValue) |
BillPosition.Builder |
shortQuantity(double shortQuantity)
Sets the short quantity of the security.
|
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<BillPosition>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BillPosition>public BillPosition.Builder set(String propertyName, Object newValue)
public BillPosition.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<BillPosition>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BillPosition>public BillPosition build()
public BillPosition.Builder info(PositionInfo info)
This allows additional information to be attached to the position.
info - the new value, not nullpublic BillPosition.Builder product(Bill product)
The product captures the contracted financial details.
product - the new value, not nullpublic BillPosition.Builder longQuantity(double longQuantity)
This is the quantity of the underlying security that is held. The quantity cannot be negative, as that would imply short selling.
longQuantity - the new valuepublic BillPosition.Builder shortQuantity(double shortQuantity)
This is the quantity of the underlying security that has been short sold. The quantity cannot be negative, as that would imply the position is long.
shortQuantity - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BillPosition>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.