Class FutureValueNotional.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FutureValueNotional>
-
- com.opengamma.strata.product.swap.FutureValueNotional.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<FutureValueNotional>
- Enclosing class:
- FutureValueNotional
public static final class FutureValueNotional.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FutureValueNotional>
The bean-builder forFutureValueNotional
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FutureValueNotional
build()
FutureValueNotional.Builder
dayCountDays(Integer dayCountDays)
Sets the number of days in the calculation period.Object
get(String propertyName)
FutureValueNotional.Builder
set(String propertyName, Object newValue)
FutureValueNotional.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
FutureValueNotional.Builder
value(Double value)
Sets the amount.FutureValueNotional.Builder
valueDate(LocalDate valueDate)
Sets the value date.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<FutureValueNotional>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FutureValueNotional>
-
set
public FutureValueNotional.Builder set(String propertyName, Object newValue)
-
set
public FutureValueNotional.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<FutureValueNotional>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FutureValueNotional>
-
build
public FutureValueNotional build()
-
value
public FutureValueNotional.Builder value(Double value)
Sets the amount.The future value notional amount, derived as per the standard formula.
- Parameters:
value
- the new value- Returns:
- this, for chaining, not null
-
valueDate
public FutureValueNotional.Builder valueDate(LocalDate valueDate)
Sets the value date.This is the adjusted value date of the future value amount, which is the adjusted end date.
- Parameters:
valueDate
- the new value- Returns:
- this, for chaining, not null
-
dayCountDays
public FutureValueNotional.Builder dayCountDays(Integer dayCountDays)
Sets the number of days in the calculation period.This defines the number of days from the adjusted start date to the adjusted end date as calculated by the day count.
- Parameters:
dayCountDays
- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FutureValueNotional>
-
-