Package com.opengamma.strata.product.cms
Class ResolvedCmsLeg.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCmsLeg>
-
- com.opengamma.strata.product.cms.ResolvedCmsLeg.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedCmsLeg>
- Enclosing class:
- ResolvedCmsLeg
public static final class ResolvedCmsLeg.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCmsLeg>
The bean-builder forResolvedCmsLeg.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedCmsLegbuild()ResolvedCmsLeg.BuildercmsPeriods(CmsPeriod... cmsPeriods)Sets thecmsPeriodsproperty in the builder from an array of objects.ResolvedCmsLeg.BuildercmsPeriods(List<CmsPeriod> cmsPeriods)Sets the periodic payments based on the successive observed values of a swap index.Objectget(String propertyName)ResolvedCmsLeg.BuilderpayReceive(PayReceive payReceive)Sets whether the leg is pay or receive.ResolvedCmsLeg.Builderset(String propertyName, Object newValue)ResolvedCmsLeg.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ResolvedCmsLeg>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCmsLeg>
-
set
public ResolvedCmsLeg.Builder set(String propertyName, Object newValue)
-
set
public ResolvedCmsLeg.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<ResolvedCmsLeg>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCmsLeg>
-
build
public ResolvedCmsLeg build()
-
payReceive
public ResolvedCmsLeg.Builder payReceive(PayReceive payReceive)
Sets whether the leg is pay or receive.A value of 'Pay' implies that the resulting amount is paid to the counterparty. A value of 'Receive' implies that the resulting amount is received from the counterparty. Note that negative swap rates can result in a payment in the opposite direction to that implied by this indicator.
The value of this flag should match the signs of the payment period notionals.
- Parameters:
payReceive- the new value, not null- Returns:
- this, for chaining, not null
-
cmsPeriods
public ResolvedCmsLeg.Builder cmsPeriods(List<CmsPeriod> cmsPeriods)
Sets the periodic payments based on the successive observed values of a swap index.Each payment period represents part of the life-time of the leg. In most cases, the periods do not overlap. However, since each payment period is essentially independent the data model allows overlapping periods.
- Parameters:
cmsPeriods- the new value, not empty- Returns:
- this, for chaining, not null
-
cmsPeriods
public ResolvedCmsLeg.Builder cmsPeriods(CmsPeriod... cmsPeriods)
Sets thecmsPeriodsproperty in the builder from an array of objects.- Parameters:
cmsPeriods- the new value, not empty- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCmsLeg>
-
-