public enum FraDiscountingMethod extends Enum<FraDiscountingMethod> implements NamedEnum
When calculating the price of a FRA, there are different approaches to pricing in different markets. This method captures the approach to discounting.
Defined by the 2006 ISDA definitions article 8.4.
| Enum Constant and Description |
|---|
AFMA
FRA discounting as defined by the Australian Financial Markets Association (AFMA).
|
ISDA
FRA discounting as defined by ISDA.
|
NONE
No discounting applies.
|
| Modifier and Type | Method and Description |
|---|---|
static FraDiscountingMethod |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static FraDiscountingMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FraDiscountingMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FraDiscountingMethod NONE
public static final FraDiscountingMethod ISDA
Defined by the 2006 ISDA definitions article 8.4b.
public static final FraDiscountingMethod AFMA
Defined by the 2006 ISDA definitions article 8.4e.
public static FraDiscountingMethod[] values()
for (FraDiscountingMethod c : FraDiscountingMethod.values()) System.out.println(c);
public static FraDiscountingMethod 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 FraDiscountingMethod 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<FraDiscountingMethod>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.