public enum CashSwaptionSettlementMethod extends Enum<CashSwaptionSettlementMethod> implements NamedEnum
Reference: "Swaption Pricing", OpenGamma Documentation 10, Version 1.2, April 2011.
| Enum Constant and Description |
|---|
CASH_PRICE
The cash price method
|
COLLATERALIZED_CASH_PRICE
The Collateralized Cash Price
|
PAR_YIELD
The par yield curve method.
|
ZERO_COUPON_YIELD
The zero coupon yield method.
|
| Modifier and Type | Method and Description |
|---|---|
static CashSwaptionSettlementMethod |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static CashSwaptionSettlementMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CashSwaptionSettlementMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CashSwaptionSettlementMethod CASH_PRICE
If exercised, the value of the underlying swap is exchanged at the cash settlement date. Defined by the 2006 ISDA definitions 18.3a and 18.3b.
public static final CashSwaptionSettlementMethod PAR_YIELD
The settlement amount is computed with cash-settled annuity using the pre-agreed strike swap rate. Defined by the 2006 ISDA definitions 18.3c and 18.3e.
public static final CashSwaptionSettlementMethod ZERO_COUPON_YIELD
The settlement amount is computed with the discount factor based on the agreed zero coupon curve. Defined by the 2006 ISDA definitions 18.3d.
public static final CashSwaptionSettlementMethod COLLATERALIZED_CASH_PRICE
The settlement amount is computed with the discount factor based where the parties are deemed to have a bilateral, zero-threshold ISDA CSA. Defined by the 2006 ISDA definitions 18.3g.
public static CashSwaptionSettlementMethod[] values()
for (CashSwaptionSettlementMethod c : CashSwaptionSettlementMethod.values()) System.out.println(c);
public static CashSwaptionSettlementMethod 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 CashSwaptionSettlementMethod 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<CashSwaptionSettlementMethod>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.