Class IborAveragedFixing.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborAveragedFixing>
-
- com.opengamma.strata.product.rate.IborAveragedFixing.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<IborAveragedFixing>
- Enclosing class:
- IborAveragedFixing
public static final class IborAveragedFixing.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborAveragedFixing>
The bean-builder forIborAveragedFixing.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IborAveragedFixingbuild()IborAveragedFixing.BuilderfixedRate(Double fixedRate)Sets the fixed rate for the fixing date, optional.Objectget(String propertyName)IborAveragedFixing.Builderobservation(IborIndexObservation observation)Sets the Ibor index observation to use to determine a rate for the reset period.IborAveragedFixing.Builderset(String propertyName, Object newValue)IborAveragedFixing.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()IborAveragedFixing.Builderweight(double weight)Sets the weight to apply to this fixing.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<IborAveragedFixing>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborAveragedFixing>
-
set
public IborAveragedFixing.Builder set(String propertyName, Object newValue)
-
set
public IborAveragedFixing.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<IborAveragedFixing>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborAveragedFixing>
-
build
public IborAveragedFixing build()
-
observation
public IborAveragedFixing.Builder observation(IborIndexObservation observation)
Sets the Ibor index observation to use to determine a rate for the reset period.- Parameters:
observation- the new value, not null- Returns:
- this, for chaining, not null
-
fixedRate
public IborAveragedFixing.Builder fixedRate(Double fixedRate)
Sets the fixed rate for the fixing date, optional. A 5% rate will be expressed as 0.05.In certain circumstances two counterparties agree the rate of a fixing when the contract starts. It is used in place of an observed fixing. Other calculation elements, such as gearing or spread, still apply.
If the value not present, which is the normal case, then the rate is observed via the normal fixing process.
- Parameters:
fixedRate- the new value- Returns:
- this, for chaining, not null
-
weight
public IborAveragedFixing.Builder weight(double weight)
Sets the weight to apply to this fixing.If the averaging is unweighted, then all weights must be one.
- Parameters:
weight- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborAveragedFixing>
-
-