public interface PriceIndex extends Index, 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.
|
Currency |
getCurrency()
Gets the currency of the index.
|
FloatingRateName |
getFloatingRateName()
Gets the floating rate name for this index.
|
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.
|
boolean |
isActive()
Gets whether the index is active.
|
static PriceIndex |
of(String uniqueName)
Obtains an instance from the specified unique name.
|
static PriceIndex of(String uniqueName)
uniqueName
- 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()
Currency getCurrency()
boolean isActive()
Over time some indices become inactive and are no longer produced. If this occurs, this method will return false.
Frequency getPublicationFrequency()
Most price indices are published monthly, but some are published quarterly.
FloatingRateName getFloatingRateName()
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.