Class OvernightCompoundedAnnualRateComputation
- java.lang.Object
-
- com.opengamma.strata.product.rate.OvernightCompoundedAnnualRateComputation
-
- All Implemented Interfaces:
OvernightRateComputation,RateComputation,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class OvernightCompoundedAnnualRateComputation extends Object implements OvernightRateComputation, org.joda.beans.ImmutableBean, Serializable
Defines the computation of a rate from a single overnight index that follows overnight compounding using an annualized rate.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'.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOvernightCompoundedAnnualRateComputation.BuilderThe bean-builder forOvernightCompoundedAnnualRateComputation.static classOvernightCompoundedAnnualRateComputation.MetaThe meta-bean forOvernightCompoundedAnnualRateComputation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OvernightCompoundedAnnualRateComputation.Builderbuilder()Returns a builder used to create an instance of the bean.booleanequals(Object obj)LocalDategetEndDate()Gets the fixing date associated with the end date of the accrual period.HolidayCalendargetFixingCalendar()Gets the resolved calendar that the index uses.OvernightIndexgetIndex()Gets the Overnight index.LocalDategetStartDate()Gets the fixing date associated with the start date of the accrual period.inthashCode()static OvernightCompoundedAnnualRateComputation.Metameta()The meta-bean forOvernightCompoundedAnnualRateComputation.OvernightCompoundedAnnualRateComputation.MetametaBean()static OvernightCompoundedAnnualRateComputationof(OvernightIndex index, LocalDate startDate, LocalDate endDate, ReferenceData refData)Obtains an instance from an index and period dates.OvernightCompoundedAnnualRateComputation.BuildertoBuilder()Returns a builder that allows this bean to be mutated.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.opengamma.strata.product.rate.OvernightRateComputation
calculateEffectiveFromFixing, calculateFixingFromEffective, calculateMaturityFromEffective, calculateMaturityFromFixing, calculatePublicationFromFixing, collectIndices, observeOn
-
-
-
-
Method Detail
-
of
public static OvernightCompoundedAnnualRateComputation of(OvernightIndex index, LocalDate startDate, LocalDate endDate, ReferenceData refData)
Obtains an instance from an index and period dates.- Parameters:
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 calendars- Returns:
- the rate computation
-
meta
public static OvernightCompoundedAnnualRateComputation.Meta meta()
The meta-bean forOvernightCompoundedAnnualRateComputation.- Returns:
- the meta-bean, not null
-
builder
public static OvernightCompoundedAnnualRateComputation.Builder builder()
Returns a builder used to create an instance of the bean.- Returns:
- the builder, not null
-
metaBean
public OvernightCompoundedAnnualRateComputation.Meta metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getIndex
public OvernightIndex getIndex()
Gets the Overnight index.The rate to be paid is based on this index.
- Specified by:
getIndexin interfaceOvernightRateComputation- Returns:
- the value of the property, not null
-
getFixingCalendar
public HolidayCalendar getFixingCalendar()
Gets the resolved calendar that the index uses.- Specified by:
getFixingCalendarin interfaceOvernightRateComputation- Returns:
- the value of the property, not null
-
getStartDate
public LocalDate getStartDate()
Gets the fixing date associated with the start date of the accrual period.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.
- Specified by:
getStartDatein interfaceOvernightRateComputation- Returns:
- the value of the property, not null
-
getEndDate
public LocalDate getEndDate()
Gets the fixing date associated with the end date of the accrual period.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.
- Specified by:
getEndDatein interfaceOvernightRateComputation- Returns:
- the value of the property, not null
-
toBuilder
public OvernightCompoundedAnnualRateComputation.Builder toBuilder()
Returns a builder that allows this bean to be mutated.- Returns:
- the mutable builder, not null
-
-