Package com.opengamma.strata.product.dsf
Class DsfSecurity.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DsfSecurity>
-
- com.opengamma.strata.product.dsf.DsfSecurity.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<DsfSecurity>
- Enclosing class:
- DsfSecurity
public static final class DsfSecurity.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DsfSecurity>
The bean-builder forDsfSecurity.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DsfSecuritybuild()Objectget(String propertyName)DsfSecurity.Builderinfo(SecurityInfo info)Sets the standard security information.DsfSecurity.BuilderlastTradeDate(LocalDate lastTradeDate)Sets the last date of trading.DsfSecurity.Buildernotional(double notional)Sets the notional.DsfSecurity.Builderset(String propertyName, Object newValue)DsfSecurity.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()DsfSecurity.BuilderunderlyingSwap(Swap underlyingSwap)Sets the underlying swap.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<DsfSecurity>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<DsfSecurity>
-
set
public DsfSecurity.Builder set(String propertyName, Object newValue)
-
set
public DsfSecurity.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<DsfSecurity>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<DsfSecurity>
-
build
public DsfSecurity build()
-
info
public DsfSecurity.Builder info(SecurityInfo info)
Sets the standard security information.This includes the security identifier.
- Parameters:
info- the new value, not null- Returns:
- this, for chaining, not null
-
notional
public DsfSecurity.Builder notional(double notional)
Sets the notional.This is also called face value or contract value.
- Parameters:
notional- the new value- Returns:
- this, for chaining, not null
-
lastTradeDate
public DsfSecurity.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
-
underlyingSwap
public DsfSecurity.Builder underlyingSwap(Swap underlyingSwap)
Sets the underlying swap.The delivery date of the future is the start date of the swap. The swap must be a single currency swap with a notional of 1. There must be two legs, the fixed leg must be received and the floating rate must be paid.
- Parameters:
underlyingSwap- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<DsfSecurity>
-
-