public static final class ResolvedCmsLeg.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCmsLeg>
ResolvedCmsLeg.| Modifier and Type | Method and Description |
|---|---|
ResolvedCmsLeg |
build() |
ResolvedCmsLeg.Builder |
cmsPeriods(CmsPeriod... cmsPeriods)
Sets the
cmsPeriods property in the builder
from an array of objects. |
ResolvedCmsLeg.Builder |
cmsPeriods(List<CmsPeriod> cmsPeriods)
Sets the periodic payments based on the successive observed values of a swap index.
|
Object |
get(String propertyName) |
ResolvedCmsLeg.Builder |
payReceive(PayReceive payReceive)
Sets whether the leg is pay or receive.
|
ResolvedCmsLeg.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ResolvedCmsLeg.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ResolvedCmsLeg>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCmsLeg>public ResolvedCmsLeg.Builder set(String propertyName, Object newValue)
public ResolvedCmsLeg.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ResolvedCmsLeg>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCmsLeg>public ResolvedCmsLeg build()
public ResolvedCmsLeg.Builder payReceive(PayReceive payReceive)
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.
payReceive - the new value, not nullpublic ResolvedCmsLeg.Builder cmsPeriods(List<CmsPeriod> cmsPeriods)
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.
cmsPeriods - the new value, not emptypublic ResolvedCmsLeg.Builder cmsPeriods(CmsPeriod... cmsPeriods)
cmsPeriods property in the builder
from an array of objects.cmsPeriods - the new value, not emptypublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCmsLeg>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.