public static final class RatePaymentPeriod.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<RatePaymentPeriod>
RatePaymentPeriod.| Modifier and Type | Method and Description |
|---|---|
RatePaymentPeriod.Builder |
accrualPeriods(List<RateAccrualPeriod> accrualPeriods)
Sets the accrual periods that combine to form the payment period.
|
RatePaymentPeriod.Builder |
accrualPeriods(RateAccrualPeriod... accrualPeriods)
Sets the
accrualPeriods property in the builder
from an array of objects. |
RatePaymentPeriod |
build() |
RatePaymentPeriod.Builder |
compoundingMethod(CompoundingMethod compoundingMethod)
Sets the compounding method to use when there is more than one accrual period, default is 'None'.
|
RatePaymentPeriod.Builder |
currency(Currency currency)
Sets the primary currency of the payment period.
|
RatePaymentPeriod.Builder |
dayCount(DayCount dayCount)
Sets the day count convention.
|
RatePaymentPeriod.Builder |
fxReset(FxReset fxReset)
Sets the FX reset definition, optional.
|
Object |
get(String propertyName) |
RatePaymentPeriod.Builder |
notional(double notional)
Sets the notional amount, positive if receiving, negative if paying.
|
RatePaymentPeriod.Builder |
paymentDate(LocalDate paymentDate)
Sets the date that payment occurs.
|
RatePaymentPeriod.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
RatePaymentPeriod.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<RatePaymentPeriod>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<RatePaymentPeriod>public RatePaymentPeriod.Builder set(String propertyName, Object newValue)
public RatePaymentPeriod.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<RatePaymentPeriod>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<RatePaymentPeriod>public RatePaymentPeriod build()
public RatePaymentPeriod.Builder paymentDate(LocalDate paymentDate)
The date that payment is made for the accrual periods. If the schedule adjusts for business days, then this is the adjusted date.
paymentDate - the new value, not nullpublic RatePaymentPeriod.Builder accrualPeriods(List<RateAccrualPeriod> accrualPeriods)
Each accrual period includes the applicable dates and details of how to observe the rate. In most cases, there will be one accrual period. If there is more than one accrual period then compounding may apply.
accrualPeriods - the new value, not emptypublic RatePaymentPeriod.Builder accrualPeriods(RateAccrualPeriod... accrualPeriods)
accrualPeriods property in the builder
from an array of objects.accrualPeriods - the new value, not emptypublic RatePaymentPeriod.Builder dayCount(DayCount dayCount)
Each accrual period contains a year fraction calculated using this day count. This day count is used when there is a need to perform further calculations.
dayCount - the new value, not nullpublic RatePaymentPeriod.Builder currency(Currency currency)
This is the currency of the swap leg and the currency that interest calculation is made in.
The amounts of the notional are usually expressed in terms of this currency,
however they can be converted from amounts in a different currency.
See the optional fxReset property.
currency - the new value, not nullpublic RatePaymentPeriod.Builder fxReset(FxReset fxReset)
This property is used when the defined amount of the notional is specified in a currency other than the currency of the swap leg. When this occurs, the notional amount has to be converted using an FX rate to the swap leg currency.
The FX reset definition must be valid. It must have a reference currency that is different to that of this period, and the currency of this period must be one of those defined by the FX reset index.
fxReset - the new valuepublic RatePaymentPeriod.Builder notional(double notional)
The notional amount applicable during the period.
The currency of the notional is specified by currency unless there
is the fxReset property is present.
notional - the new valuepublic RatePaymentPeriod.Builder compoundingMethod(CompoundingMethod compoundingMethod)
Compounding is used when combining accrual periods.
compoundingMethod - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<RatePaymentPeriod>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.