public enum OvernightAccrualMethod extends Enum<OvernightAccrualMethod> implements NamedEnum
Four methods of accrual are supported, see the Javadoc for when each is applicable.
| Enum Constant and Description |
|---|
AVERAGED
The averaged method.
|
AVERAGED_DAILY
The averaged daily method.
|
COMPOUNDED
The compounded method.
|
OVERNIGHT_COMPOUNDED_ANNUAL_RATE
Defines overnight compounding using an annual rate.
|
| Modifier and Type | Method and Description |
|---|---|
static OvernightAccrualMethod |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static OvernightAccrualMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OvernightAccrualMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OvernightAccrualMethod COMPOUNDED
Interest is accrued by simple compounding of each rate published during the accrual period.
Defined by the 2006 ISDA definitions article 6.2a(3C).
This is the most common formula for OIS swaps.
public static final OvernightAccrualMethod OVERNIGHT_COMPOUNDED_ANNUAL_RATE
Interest is accrued by overnight compounding of each rate during the accrual period using an annual rate.
This is the most common type for Brazilian style swaps.
public static final OvernightAccrualMethod AVERAGED
Interest is accrued by taking the average of all the rates published on the index during the accrual period.
This is intended for Fed Fund OIS swaps.
public static final OvernightAccrualMethod AVERAGED_DAILY
Interest is accrued by taking the average of all the daily rates during the observation period.
This is intended for Fed Fund futures, not swaps.
public static OvernightAccrualMethod[] values()
for (OvernightAccrualMethod c : OvernightAccrualMethod.values()) System.out.println(c);
public static OvernightAccrualMethod 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 OvernightAccrualMethod 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<OvernightAccrualMethod>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.