public enum FixedAccrualMethod extends Enum<FixedAccrualMethod> implements NamedEnum
| Enum Constant and Description |
|---|
DEFAULT
The default method.
|
OVERNIGHT_COMPOUNDED_ANNUAL_RATE
Defines overnight compounding using an annual rate.
|
| Modifier and Type | Method and Description |
|---|---|
static FixedAccrualMethod |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static FixedAccrualMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FixedAccrualMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FixedAccrualMethod DEFAULT
The notional accrues no interest.
This is the most common type for fixed legs.
public static final FixedAccrualMethod OVERNIGHT_COMPOUNDED_ANNUAL_RATE
The notional accrues interest on an overnight basis using an annual fixed rate.
This is the most common type for Brazilian style fixed legs.
public static FixedAccrualMethod[] values()
for (FixedAccrualMethod c : FixedAccrualMethod.values()) System.out.println(c);
public static FixedAccrualMethod 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 FixedAccrualMethod 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<FixedAccrualMethod>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.