Class IborFuturePosition.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFuturePosition>
-
- com.opengamma.strata.product.index.IborFuturePosition.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<IborFuturePosition>
- Enclosing class:
- IborFuturePosition
public static final class IborFuturePosition.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFuturePosition>
The bean-builder forIborFuturePosition.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IborFuturePositionbuild()Objectget(String propertyName)IborFuturePosition.Builderinfo(PositionInfo info)Sets the additional position information, defaulted to an empty instance.IborFuturePosition.BuilderlongQuantity(double longQuantity)Sets the long quantity of the security.IborFuturePosition.Builderproduct(IborFuture product)Sets the future that was traded.IborFuturePosition.Builderset(String propertyName, Object newValue)IborFuturePosition.Builderset(org.joda.beans.MetaProperty<?> property, Object value)IborFuturePosition.BuildershortQuantity(double shortQuantity)Sets the short quantity of the security.StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<IborFuturePosition>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFuturePosition>
-
set
public IborFuturePosition.Builder set(String propertyName, Object newValue)
-
set
public IborFuturePosition.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<IborFuturePosition>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFuturePosition>
-
build
public IborFuturePosition build()
-
info
public IborFuturePosition.Builder info(PositionInfo info)
Sets the additional position information, defaulted to an empty instance.This allows additional information to be attached to the position.
- Parameters:
info- the new value, not null- Returns:
- this, for chaining, not null
-
product
public IborFuturePosition.Builder product(IborFuture product)
Sets the future that was traded.The product captures the contracted financial details.
- Parameters:
product- the new value, not null- Returns:
- this, for chaining, not null
-
longQuantity
public IborFuturePosition.Builder longQuantity(double longQuantity)
Sets the long quantity of the security.This is the quantity of the underlying security that is held. The quantity cannot be negative, as that would imply short selling.
- Parameters:
longQuantity- the new value- Returns:
- this, for chaining, not null
-
shortQuantity
public IborFuturePosition.Builder shortQuantity(double shortQuantity)
Sets the short quantity of the security.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.
- Parameters:
shortQuantity- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFuturePosition>
-
-