public enum PriceIndexCalculationMethod extends Enum<PriceIndexCalculationMethod> implements NamedEnum
This defines how the reference index calculation occurs.
References: "Bond Pricing", OpenGamma Documentation 5, Version 2.0, May 2013, "Inflation Instruments: Swap Zero-coupon, Year-on-year and Bonds."
| Enum Constant and Description |
|---|
INTERPOLATED
The reference index is linearly interpolated between two months.
|
INTERPOLATED_JAPAN
The reference index is linearly interpolated between two months.
|
MONTHLY
The reference index is the price index of a month.
|
| Modifier and Type | Method and Description |
|---|---|
static PriceIndexCalculationMethod |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static PriceIndexCalculationMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PriceIndexCalculationMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PriceIndexCalculationMethod MONTHLY
public static final PriceIndexCalculationMethod INTERPOLATED
public static final PriceIndexCalculationMethod INTERPOLATED_JAPAN
public static PriceIndexCalculationMethod[] values()
for (PriceIndexCalculationMethod c : PriceIndexCalculationMethod.values()) System.out.println(c);
public static PriceIndexCalculationMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static PriceIndexCalculationMethod of(String name)
Parsing handles the mixed case form produced by toString() and
the upper and lower case variants of the enum constant name.
name - the name to parseIllegalArgumentException - if the name is not knownpublic String toString()
toString in class Enum<PriceIndexCalculationMethod>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.