Package com.opengamma.strata.product.dsf
Class Dsf.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<Dsf>
-
- com.opengamma.strata.product.dsf.Dsf.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dsfbuild()Dsf.BuilderdeliveryDate(LocalDate deliveryDate)Sets the delivery date.Objectget(String propertyName)Dsf.BuilderlastTradeDate(LocalDate lastTradeDate)Sets the last date of trading.Dsf.Buildernotional(double notional)Sets the notional of the futures.Dsf.BuildersecurityId(SecurityId securityId)Sets the security identifier.Dsf.Builderset(String propertyName, Object newValue)Dsf.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()Dsf.BuilderunderlyingSwap(Swap underlyingSwap)Sets the underlying swap.
-
-
-
Method Detail
-
set
public Dsf.Builder set(String propertyName, Object newValue)
-
set
public Dsf.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
-
build
public Dsf build()
-
securityId
public Dsf.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
-
notional
public Dsf.Builder notional(double notional)
Sets the notional of the futures.This is also called face value or contract value.
- Parameters:
notional- the new value- Returns:
- this, for chaining, not null
-
lastTradeDate
public Dsf.Builder lastTradeDate(LocalDate lastTradeDate)
Sets the last date of trading.This date must be before the delivery date of the underlying swap.
- Parameters:
lastTradeDate- the new value, not null- Returns:
- this, for chaining, not null
-
deliveryDate
public Dsf.Builder deliveryDate(LocalDate deliveryDate)
Sets the delivery date.The underlying swap is delivered on this date.
- Parameters:
deliveryDate- the new value, not null- Returns:
- this, for chaining, not null
-
underlyingSwap
public Dsf.Builder underlyingSwap(Swap underlyingSwap)
Sets the underlying swap.The delivery date of the future is typically the first accrual date of the underlying swap. The swap should be a receiver swap of notional 1.
- Parameters:
underlyingSwap- the new value, not null- Returns:
- this, for chaining, not null
-
-