public enum PaymentOnDefault extends Enum<PaymentOnDefault> implements NamedEnum
Whether the accrued premium is paid in the event of a default.
Enum Constant and Description |
---|
ACCRUED_PREMIUM
The accrued premium.
|
NONE
None.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAccruedInterest()
Check if the accrued premium is paid.
|
static PaymentOnDefault |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static PaymentOnDefault |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaymentOnDefault[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaymentOnDefault ACCRUED_PREMIUM
If the credit event happens between coupon dates, the accrued premium is paid.
public static final PaymentOnDefault NONE
Even if the credit event happens between coupon dates, the accrued premium is not paid.
public static PaymentOnDefault[] values()
for (PaymentOnDefault c : PaymentOnDefault.values()) System.out.println(c);
public static PaymentOnDefault 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 PaymentOnDefault 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 isAccruedInterest()
public String toString()
toString
in class Enum<PaymentOnDefault>
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.