public static final class DsfSecurity.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DsfSecurity>
DsfSecurity.| Modifier and Type | Method and 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(org.joda.beans.MetaProperty<?> property,
Object value) |
DsfSecurity.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
DsfSecurity.Builder |
underlyingSwap(Swap underlyingSwap)
Sets the underlying swap.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<DsfSecurity>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DsfSecurity>public DsfSecurity.Builder set(String propertyName, Object newValue)
public DsfSecurity.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<DsfSecurity>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DsfSecurity>public DsfSecurity build()
public DsfSecurity.Builder info(SecurityInfo info)
This includes the security identifier.
info - the new value, not nullpublic DsfSecurity.Builder notional(double notional)
This is also called face value or contract value.
notional - the new valuepublic DsfSecurity.Builder lastTradeDate(LocalDate lastTradeDate)
This date must be before the delivery date of the underlying swap.
lastTradeDate - the new value, not nullpublic DsfSecurity.Builder underlyingSwap(Swap underlyingSwap)
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.
underlyingSwap - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DsfSecurity>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.