public enum AccrualStart extends Enum<AccrualStart> implements NamedEnum
The accrual start is the next day or the previous IMM date.
| Enum Constant and Description |
|---|
IMM_DATE
The accrual starts on the previous IMM date.
|
NEXT_DAY
The accrual starts on T+1, i.e., the next day.
|
| Modifier and Type | Method and Description |
|---|---|
static AccrualStart |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static AccrualStart |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccrualStart[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccrualStart NEXT_DAY
public static final AccrualStart IMM_DATE
The IMM date must be computed based on CdsImmDateLogic.
public static AccrualStart[] values()
for (AccrualStart c : AccrualStart.values()) System.out.println(c);
public static AccrualStart 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 AccrualStart 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<AccrualStart>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.