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 DsfSecurity
build()
Object
get(String propertyName)
DsfSecurity.Builder
info(SecurityInfo info)
Sets the standard security information.DsfSecurity.Builder
lastTradeDate(LocalDate lastTradeDate)
Sets the last date of trading.DsfSecurity.Builder
notional(double notional)
Sets the notional.DsfSecurity.Builder
set(String propertyName, Object newValue)
DsfSecurity.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
DsfSecurity.Builder
underlyingSwap(Swap underlyingSwap)
Sets the underlying swap.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<DsfSecurity>
- Overrides:
get
in 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:
set
in interfaceorg.joda.beans.BeanBuilder<DsfSecurity>
- Overrides:
set
in 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:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<DsfSecurity>
-
-