Class IborRateStubCalculation.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborRateStubCalculation>
-
- com.opengamma.strata.product.swap.IborRateStubCalculation.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<IborRateStubCalculation>
- Enclosing class:
- IborRateStubCalculation
public static final class IborRateStubCalculation.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborRateStubCalculation>
The bean-builder forIborRateStubCalculation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IborRateStubCalculationbuild()IborRateStubCalculation.BuilderfixedRate(Double fixedRate)Sets the fixed rate to use in the stub.Objectget(String propertyName)IborRateStubCalculation.Builderindex(IborIndex index)Sets the Ibor index to be used for the stub.IborRateStubCalculation.BuilderindexInterpolated(IborIndex indexInterpolated)Sets the second Ibor index to be used for the stub, linearly interpolated.IborRateStubCalculation.BuilderknownAmount(CurrencyAmount knownAmount)Sets the known amount to pay/receive for the stub.IborRateStubCalculation.Builderset(String propertyName, Object newValue)IborRateStubCalculation.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<IborRateStubCalculation>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborRateStubCalculation>
-
set
public IborRateStubCalculation.Builder set(String propertyName, Object newValue)
-
set
public IborRateStubCalculation.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<IborRateStubCalculation>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborRateStubCalculation>
-
build
public IborRateStubCalculation build()
-
fixedRate
public IborRateStubCalculation.Builder fixedRate(Double fixedRate)
Sets the fixed rate to use in the stub. A 5% rate will be expressed as 0.05.In certain circumstances two counterparties agree a fixed rate for the stub. It is used in place of an observed fixing. Other calculation elements, such as gearing or spread, still apply.
If the fixed rate is present, then
knownAmount,indexandindexInterpolatedmust not be present.- Parameters:
fixedRate- the new value- Returns:
- this, for chaining, not null
-
knownAmount
public IborRateStubCalculation.Builder knownAmount(CurrencyAmount knownAmount)
Sets the known amount to pay/receive for the stub.If the known amount is present, then
fixedRate,indexandindexInterpolatedmust not be present.- Parameters:
knownAmount- the new value- Returns:
- this, for chaining, not null
-
index
public IborRateStubCalculation.Builder index(IborIndex index)
Sets the Ibor index to be used for the stub.This will be used throughout the stub unless
indexInterpolatedis present.If the index is present, then
fixedRateandknownAmountmust not be present.- Parameters:
index- the new value- Returns:
- this, for chaining, not null
-
indexInterpolated
public IborRateStubCalculation.Builder indexInterpolated(IborIndex indexInterpolated)
Sets the second Ibor index to be used for the stub, linearly interpolated.This will be used with
indexto linearly interpolate the rate. This index may be shorter or longer thanindex, but not the same.If the interpolated index is present, then
indexmust also be present, andfixedRateandknownAmountmust not be present.- Parameters:
indexInterpolated- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborRateStubCalculation>
-
-