public enum ProtectionStartOfDay extends Enum<ProtectionStartOfDay> implements NamedEnum
When the protection starts on the start date.
| Enum Constant and Description |
|---|
BEGINNING
Beginning of the start day.
|
NONE
None.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBeginning()
Check if the type is 'Beginning'.
|
static ProtectionStartOfDay |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static ProtectionStartOfDay |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtectionStartOfDay[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtectionStartOfDay BEGINNING
The protection starts at the beginning of the day.
public static final ProtectionStartOfDay NONE
The protection start is not specified. The CDS is priced based on the default date logic in respective model implementation.
public static ProtectionStartOfDay[] values()
for (ProtectionStartOfDay c : ProtectionStartOfDay.values()) System.out.println(c);
public static ProtectionStartOfDay 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 ProtectionStartOfDay 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 boolean isBeginning()
public String toString()
toString in class Enum<ProtectionStartOfDay>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.