public static final class IborFuturePosition.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFuturePosition>
IborFuturePosition.| Modifier and Type | Method and Description |
|---|---|
IborFuturePosition |
build() |
Object |
get(String propertyName) |
IborFuturePosition.Builder |
info(PositionInfo info)
Sets the additional position information, defaulted to an empty instance.
|
IborFuturePosition.Builder |
longQuantity(double longQuantity)
Sets the long quantity of the security.
|
IborFuturePosition.Builder |
product(IborFuture product)
Sets the future that was traded.
|
IborFuturePosition.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
IborFuturePosition.Builder |
set(String propertyName,
Object newValue) |
IborFuturePosition.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<IborFuturePosition>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFuturePosition>public IborFuturePosition.Builder set(String propertyName, Object newValue)
public IborFuturePosition.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<IborFuturePosition>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFuturePosition>public IborFuturePosition build()
public IborFuturePosition.Builder info(PositionInfo info)
This allows additional information to be attached to the position.
info - the new value, not nullpublic IborFuturePosition.Builder product(IborFuture product)
The product captures the contracted financial details.
product - the new value, not nullpublic IborFuturePosition.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 IborFuturePosition.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<IborFuturePosition>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.