public final class OvernightCompoundedAnnualRateComputation extends Object implements OvernightRateComputation, org.joda.beans.ImmutableBean, Serializable
An interest rate determined directly from an overnight index that follows overnight compounding using an annualized rate. For example, a rate determined by compounding values from 'BRL-CDI'.
| Modifier and Type | Class and Description |
|---|---|
static class |
OvernightCompoundedAnnualRateComputation.Builder
The bean-builder for
OvernightCompoundedAnnualRateComputation. |
static class |
OvernightCompoundedAnnualRateComputation.Meta
The meta-bean for
OvernightCompoundedAnnualRateComputation. |
| Modifier and Type | Method and Description |
|---|---|
static OvernightCompoundedAnnualRateComputation.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
LocalDate |
getEndDate()
Gets the fixing date associated with the end date of the accrual period.
|
HolidayCalendar |
getFixingCalendar()
Gets the resolved calendar that the index uses.
|
OvernightIndex |
getIndex()
Gets the Overnight index.
|
LocalDate |
getStartDate()
Gets the fixing date associated with the start date of the accrual period.
|
int |
hashCode() |
static OvernightCompoundedAnnualRateComputation.Meta |
meta()
The meta-bean for
OvernightCompoundedAnnualRateComputation. |
OvernightCompoundedAnnualRateComputation.Meta |
metaBean() |
static OvernightCompoundedAnnualRateComputation |
of(OvernightIndex index,
LocalDate startDate,
LocalDate endDate,
ReferenceData refData)
Obtains an instance from an index and period dates.
|
OvernightCompoundedAnnualRateComputation.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcalculateEffectiveFromFixing, calculateFixingFromEffective, calculateMaturityFromEffective, calculateMaturityFromFixing, calculatePublicationFromFixing, collectIndices, observeOn, ofpublic static OvernightCompoundedAnnualRateComputation of(OvernightIndex index, LocalDate startDate, LocalDate endDate, ReferenceData refData)
index - the indexstartDate - the first date of the accrual periodendDate - the last date of the accrual periodrefData - the reference data to use when resolving holiday calendarspublic static OvernightCompoundedAnnualRateComputation.Meta meta()
OvernightCompoundedAnnualRateComputation.public static OvernightCompoundedAnnualRateComputation.Builder builder()
public OvernightCompoundedAnnualRateComputation.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic OvernightIndex getIndex()
The rate to be paid is based on this index.
getIndex in interface OvernightRateComputationpublic HolidayCalendar getFixingCalendar()
getFixingCalendar in interface OvernightRateComputationpublic LocalDate getStartDate()
This is also the first fixing date. The overnight rate is observed from this date onwards.
In general, the fixing dates and accrual dates are the same for an overnight index. However, in the case of a Tomorrow/Next index, the fixing period is one business day before the accrual period.
getStartDate in interface OvernightRateComputationpublic LocalDate getEndDate()
The overnight rate is observed until this date.
In general, the fixing dates and accrual dates are the same for an overnight index. However, in the case of a Tomorrow/Next index, the fixing period is one business day before the accrual period.
getEndDate in interface OvernightRateComputationpublic OvernightCompoundedAnnualRateComputation.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.