public interface PriceIndex extends FloatingRateIndex, Named
A price index is a normalized average of the prices of goods and/or services. Well-known price indices are published by Governments, such as the Consumer Price Index. The annualized percentage change in the index is a measure of inflation.
This interface represents a price index for a specific region. The index is typically published monthly in arrears, however some regions choose quarterly publication.
The most common implementations are provided in PriceIndices.
All implementations of this interface must be immutable and thread-safe.
| Modifier and Type | Method and Description |
|---|---|
static ExtendedEnum<PriceIndex> |
extendedEnum()
Gets the extended enum helper.
|
default DayCount |
getDayCount()
Gets the day count convention of the index, which is '1/1'.
|
String |
getName()
Gets the name that uniquely identifies this index.
|
Frequency |
getPublicationFrequency()
Gets the frequency that the index is published.
|
Country |
getRegion()
Gets the region that the index is defined for.
|
static PriceIndex |
of(String uniqueName)
Obtains an instance from the specified unique name.
|
getCurrency, getDefaultFixedLegDayCount, getFloatingRateName, isActive, parse, parse, tryParse, tryParsestatic PriceIndex of(String uniqueName)
of in interface FloatingRateIndexof in interface IndexuniqueName - the unique nameIllegalArgumentException - if the name is not knownstatic ExtendedEnum<PriceIndex> extendedEnum()
This helper allows instances of the index to be looked up. It also provides the complete set of available instances.
Country getRegion()
default DayCount getDayCount()
getDayCount in interface FloatingRateIndexFrequency getPublicationFrequency()
Most price indices are published monthly, but some are published quarterly.
String getName()
This name is used in serialization and can be parsed using of(String).
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.