public final class ImmutablePriceIndex extends Object implements PriceIndex, org.joda.beans.ImmutableBean, Serializable
A standard immutable implementation of PriceIndex.
In most cases, applications should refer to indices by name, using PriceIndex.of(String).
The named index will typically be resolved to an instance of this class.
As such, it is recommended to use the PriceIndex interface in application
code rather than directly referring to this class.
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePriceIndex.Builder
The bean-builder for
ImmutablePriceIndex. |
static class |
ImmutablePriceIndex.Meta
The meta-bean for
ImmutablePriceIndex. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePriceIndex.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency of the index.
|
FloatingRateName |
getFloatingRateName()
Gets the floating rate name for this index.
|
String |
getName()
Gets the index name, such as 'GB-HICP'.
|
Frequency |
getPublicationFrequency()
Gets the publication frequency of the index.
|
Country |
getRegion()
Gets the region of the index.
|
int |
hashCode() |
boolean |
isActive()
Gets whether the index is active, defaulted to true.
|
static ImmutablePriceIndex.Meta |
meta()
The meta-bean for
ImmutablePriceIndex. |
ImmutablePriceIndex.Meta |
metaBean() |
ImmutablePriceIndex.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString()
Returns the name of the index.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitextendedEnum, getDayCount, ofgetDefaultFixedLegDayCount, parse, parse, tryParse, tryParsepublic FloatingRateName getFloatingRateName()
FloatingRateIndex
For an Ibor index, the FloatingRateName does not include the tenor.
It can be used to find the other tenors available for this index.
getFloatingRateName in interface FloatingRategetFloatingRateName in interface FloatingRateIndexpublic String toString()
public static ImmutablePriceIndex.Meta meta()
ImmutablePriceIndex.public static ImmutablePriceIndex.Builder builder()
public ImmutablePriceIndex.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic String getName()
getName in interface FloatingRateIndexgetName in interface IndexgetName in interface PriceIndexgetName in interface Namedpublic Country getRegion()
getRegion in interface PriceIndexpublic Currency getCurrency()
getCurrency in interface FloatingRategetCurrency in interface FloatingRateIndexpublic boolean isActive()
Over time some indices become inactive and are no longer produced. If this occurs, this flag will be set to false.
isActive in interface FloatingRateIndexpublic Frequency getPublicationFrequency()
getPublicationFrequency in interface PriceIndexpublic ImmutablePriceIndex.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.