Class ResolvedBondFuture.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBondFuture>
-
- com.opengamma.strata.product.bond.ResolvedBondFuture.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedBondFuture>
- Enclosing class:
- ResolvedBondFuture
public static final class ResolvedBondFuture.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBondFuture>
The bean-builder forResolvedBondFuture
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedBondFuture
build()
ResolvedBondFuture.Builder
conversionFactors(Double... conversionFactors)
Sets theconversionFactors
property in the builder from an array of objects.ResolvedBondFuture.Builder
conversionFactors(List<Double> conversionFactors)
Sets the conversion factor for each bond in the basket.ResolvedBondFuture.Builder
deliveryBasket(ResolvedFixedCouponBond... deliveryBasket)
Sets thedeliveryBasket
property in the builder from an array of objects.ResolvedBondFuture.Builder
deliveryBasket(List<ResolvedFixedCouponBond> deliveryBasket)
Sets the basket of deliverable bonds.ResolvedBondFuture.Builder
firstDeliveryDate(LocalDate firstDeliveryDate)
Sets the first delivery date.ResolvedBondFuture.Builder
firstNoticeDate(LocalDate firstNoticeDate)
Sets the first notice date.Object
get(String propertyName)
ResolvedBondFuture.Builder
lastDeliveryDate(LocalDate lastDeliveryDate)
Sets the last delivery date.ResolvedBondFuture.Builder
lastNoticeDate(LocalDate lastNoticeDate)
Sets the last notice date.ResolvedBondFuture.Builder
lastTradeDate(LocalDate lastTradeDate)
Sets the last trading date.ResolvedBondFuture.Builder
rounding(Rounding rounding)
Sets the definition of how to round the futures price, defaulted to no rounding.ResolvedBondFuture.Builder
securityId(SecurityId securityId)
Sets the security identifier.ResolvedBondFuture.Builder
set(String propertyName, Object newValue)
ResolvedBondFuture.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ResolvedBondFuture>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBondFuture>
-
set
public ResolvedBondFuture.Builder set(String propertyName, Object newValue)
-
set
public ResolvedBondFuture.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ResolvedBondFuture>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBondFuture>
-
build
public ResolvedBondFuture build()
-
securityId
public ResolvedBondFuture.Builder securityId(SecurityId securityId)
Sets the security identifier.This identifier uniquely identifies the security within the system.
- Parameters:
securityId
- the new value, not null- Returns:
- this, for chaining, not null
-
deliveryBasket
public ResolvedBondFuture.Builder deliveryBasket(List<ResolvedFixedCouponBond> deliveryBasket)
Sets the basket of deliverable bonds.The underling which will be delivered in the future time is chosen from a basket of underling securities. This must not be empty.
All of the underlying bonds must have the same notional and currency.
- Parameters:
deliveryBasket
- the new value, not empty- Returns:
- this, for chaining, not null
-
deliveryBasket
public ResolvedBondFuture.Builder deliveryBasket(ResolvedFixedCouponBond... deliveryBasket)
Sets thedeliveryBasket
property in the builder from an array of objects.- Parameters:
deliveryBasket
- the new value, not empty- Returns:
- this, for chaining, not null
-
conversionFactors
public ResolvedBondFuture.Builder conversionFactors(List<Double> conversionFactors)
Sets the conversion factor for each bond in the basket.The price of each underlying security in the basket is rescaled by the conversion factor. This must not be empty, and its size must be the same as the size of
deliveryBasket
.All of the underlying bonds must have the same notional and currency.
- Parameters:
conversionFactors
- the new value, not empty- Returns:
- this, for chaining, not null
-
conversionFactors
public ResolvedBondFuture.Builder conversionFactors(Double... conversionFactors)
Sets theconversionFactors
property in the builder from an array of objects.- Parameters:
conversionFactors
- the new value, not empty- Returns:
- this, for chaining, not null
-
lastTradeDate
public ResolvedBondFuture.Builder lastTradeDate(LocalDate lastTradeDate)
Sets the last trading date.The future security is traded until this date.
- Parameters:
lastTradeDate
- the new value, not null- Returns:
- this, for chaining, not null
-
firstNoticeDate
public ResolvedBondFuture.Builder firstNoticeDate(LocalDate firstNoticeDate)
Sets the first notice date.The first date on which the delivery of the underlying is authorized.
- Parameters:
firstNoticeDate
- the new value, not null- Returns:
- this, for chaining, not null
-
lastNoticeDate
public ResolvedBondFuture.Builder lastNoticeDate(LocalDate lastNoticeDate)
Sets the last notice date.The last date on which the delivery of the underlying is authorized.
- Parameters:
lastNoticeDate
- the new value, not null- Returns:
- this, for chaining, not null
-
firstDeliveryDate
public ResolvedBondFuture.Builder firstDeliveryDate(LocalDate firstDeliveryDate)
Sets the first delivery date.The first date on which the underlying is delivered.
- Parameters:
firstDeliveryDate
- the new value, not null- Returns:
- this, for chaining, not null
-
lastDeliveryDate
public ResolvedBondFuture.Builder lastDeliveryDate(LocalDate lastDeliveryDate)
Sets the last delivery date.The last date on which the underlying is delivered.
- Parameters:
lastDeliveryDate
- the new value, not null- Returns:
- this, for chaining, not null
-
rounding
public ResolvedBondFuture.Builder rounding(Rounding rounding)
Sets the definition of how to round the futures price, defaulted to no rounding.The price is represented in decimal form, not percentage form. As such, the decimal places expressed by the rounding refers to this decimal form. For example, the common market price of 99.7125 for a 0.2875% rate is represented as 0.997125 which has 6 decimal places.
- Parameters:
rounding
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBondFuture>
-
-