public final class InflationMonthlyRateComputation extends Object implements RateComputation, org.joda.beans.ImmutableBean, Serializable
A price index is typically published monthly and has a delay before publication. The rate observed by this instance will be based on two observations of the index, one relative to the accrual start date and one relative to the accrual end date.
| Modifier and Type | Class and Description |
|---|---|
static class |
InflationMonthlyRateComputation.Meta
The meta-bean for
InflationMonthlyRateComputation. |
| Modifier and Type | Method and Description |
|---|---|
void |
collectIndices(ImmutableSet.Builder<Index> builder)
Collects all the indices referred to by this computation.
|
boolean |
equals(Object obj) |
PriceIndexObservation |
getEndObservation()
Gets the observation at the end.
|
PriceIndex |
getIndex()
Gets the Price index.
|
PriceIndexObservation |
getStartObservation()
Gets the observation at the start.
|
int |
hashCode() |
static InflationMonthlyRateComputation.Meta |
meta()
The meta-bean for
InflationMonthlyRateComputation. |
InflationMonthlyRateComputation.Meta |
metaBean() |
static InflationMonthlyRateComputation |
of(PriceIndex index,
YearMonth referenceStartMonth,
YearMonth referenceEndMonth)
Creates an instance from an index, reference start month and reference end month.
|
String |
toString() |
public static InflationMonthlyRateComputation of(PriceIndex index, YearMonth referenceStartMonth, YearMonth referenceEndMonth)
index - the indexreferenceStartMonth - the reference start monthreferenceEndMonth - the reference end monthpublic PriceIndex getIndex()
public void collectIndices(ImmutableSet.Builder<Index> builder)
RateComputationA computation will typically refer to one index, such as 'GBP-LIBOR-3M'. Each index that is referred to must be added to the specified builder.
collectIndices in interface RateComputationbuilder - the builder to usepublic static InflationMonthlyRateComputation.Meta meta()
InflationMonthlyRateComputation.public InflationMonthlyRateComputation.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic PriceIndexObservation getStartObservation()
The inflation rate is the ratio between the start and end observation. The start month is typically three months before the start of the period.
public PriceIndexObservation getEndObservation()
The inflation rate is the ratio between the start and end observation. The end month is typically three months before the end of the period.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.