Class FixedRateCalculation.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedRateCalculation>
-
- com.opengamma.strata.product.swap.FixedRateCalculation.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<FixedRateCalculation>
- Enclosing class:
- FixedRateCalculation
public static final class FixedRateCalculation.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedRateCalculation>
The bean-builder forFixedRateCalculation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FixedRateCalculationbuild()FixedRateCalculation.BuilderdayCount(DayCount dayCount)Sets the day count convention.FixedRateCalculation.BuilderfinalStub(FixedRateStubCalculation finalStub)Sets the final stub, optional.FixedRateCalculation.BuilderfutureValueNotional(FutureValueNotional futureValueNotional)Sets the future value notional.Objectget(String propertyName)FixedRateCalculation.BuilderinitialStub(FixedRateStubCalculation initialStub)Sets the initial stub, optional.FixedRateCalculation.Builderrate(ValueSchedule rate)Sets the interest rate to be paid.FixedRateCalculation.Builderset(String propertyName, Object newValue)FixedRateCalculation.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<FixedRateCalculation>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedRateCalculation>
-
set
public FixedRateCalculation.Builder set(String propertyName, Object newValue)
-
set
public FixedRateCalculation.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<FixedRateCalculation>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedRateCalculation>
-
build
public FixedRateCalculation build()
-
dayCount
public FixedRateCalculation.Builder dayCount(DayCount dayCount)
Sets the day count convention.This is used to convert schedule period dates to a numerical value.
- Parameters:
dayCount- the new value, not null- Returns:
- this, for chaining, not null
-
rate
public FixedRateCalculation.Builder rate(ValueSchedule rate)
Sets the interest rate to be paid. A 5% rate will be expressed as 0.05.This defines the rate as an initial amount and a list of adjustments. The rate is only permitted to change at accrual period boundaries.
- Parameters:
rate- the new value, not null- Returns:
- this, for chaining, not null
-
initialStub
public FixedRateCalculation.Builder initialStub(FixedRateStubCalculation initialStub)
Sets the initial stub, optional.The initial stub of a swap may have a different rate from the regular accrual periods. This property allows the stub rate to be specified, either as a known amount or a rate. If this property is not present, then the rate derived from the
rateproperty applies during the stub. If this property is present and there is no initial stub, it is ignored.- Parameters:
initialStub- the new value- Returns:
- this, for chaining, not null
-
finalStub
public FixedRateCalculation.Builder finalStub(FixedRateStubCalculation finalStub)
Sets the final stub, optional.The final stub of a swap may have a different rate from the regular accrual periods. This property allows the stub rate to be specified, either as a known amount or a rate. If this property is not present, then the rate derived from the
rateproperty applies during the stub. If this property is present and there is no initial stub, it is ignored.- Parameters:
finalStub- the new value- Returns:
- this, for chaining, not null
-
futureValueNotional
public FixedRateCalculation.Builder futureValueNotional(FutureValueNotional futureValueNotional)
Sets the future value notional.This property is used when the fixed leg of a swap has a future value notional. This is typically used for Brazilian swaps.
- Parameters:
futureValueNotional- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FixedRateCalculation>
-
-