public enum FixedCouponBondYieldConvention extends Enum<FixedCouponBondYieldConvention> 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.
References: "Bond Pricing", OpenGamma Documentation 5, Version 2.0, May 2013
| Enum Constant and Description |
|---|
DE_BONDS
German bonds.
|
GB_BUMP_DMO
UK BUMP/DMO method.
|
JP_SIMPLE
Japan simple yield.
|
US_STREET
US street.
|
| Modifier and Type | Method and Description |
|---|---|
static FixedCouponBondYieldConvention |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static FixedCouponBondYieldConvention |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FixedCouponBondYieldConvention[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FixedCouponBondYieldConvention GB_BUMP_DMO
public static final FixedCouponBondYieldConvention US_STREET
public static final FixedCouponBondYieldConvention DE_BONDS
public static final FixedCouponBondYieldConvention JP_SIMPLE
public static FixedCouponBondYieldConvention[] values()
for (FixedCouponBondYieldConvention c : FixedCouponBondYieldConvention.values()) System.out.println(c);
public static FixedCouponBondYieldConvention 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 FixedCouponBondYieldConvention 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<FixedCouponBondYieldConvention>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.