public enum CapitalIndexedBondYieldConvention extends Enum<CapitalIndexedBondYieldConvention> implements NamedEnum
Yield of a bond security is a conventional number representing the internal rate of return of standardized cash flows. When calculating accrued interest, it is necessary to use a formula specific to each yield convention. Accordingly, the computation of price, convexity and duration from the yield should be based on this yield convention.
"Inflation Instruments: Swap Zero-coupon, Year-on-year and Bonds."
Enum Constant and Description |
---|
GB_IL_BOND
The UK real yield convention.
|
GB_IL_FLOAT
The UK real yield convention.
|
JP_IL_COMPOUND
The Japan compound yield convention for inflation index bond.
|
JP_IL_SIMPLE
The Japan simple yield convention for inflation index bond.
|
US_IL_REAL
The US real yield convention.
|
Modifier and Type | Method and Description |
---|---|
static CapitalIndexedBondYieldConvention |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static CapitalIndexedBondYieldConvention |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CapitalIndexedBondYieldConvention[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CapitalIndexedBondYieldConvention US_IL_REAL
public static final CapitalIndexedBondYieldConvention GB_IL_FLOAT
public static final CapitalIndexedBondYieldConvention GB_IL_BOND
public static final CapitalIndexedBondYieldConvention JP_IL_SIMPLE
public static final CapitalIndexedBondYieldConvention JP_IL_COMPOUND
public static CapitalIndexedBondYieldConvention[] values()
for (CapitalIndexedBondYieldConvention c : CapitalIndexedBondYieldConvention.values()) System.out.println(c);
public static CapitalIndexedBondYieldConvention 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 CapitalIndexedBondYieldConvention 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<CapitalIndexedBondYieldConvention>
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.