public enum SettlementType extends Enum<SettlementType> implements NamedEnum
Some financial instruments have a choice of settlement, either by cash or by delivering the underlying instrument that was tracked. For example, a swaption might be cash settled or produce an actual interest rate swap.
| Enum Constant and Description |
|---|
CASH
Cash settlement.
|
PHYSICAL
Physical delivery.
|
| Modifier and Type | Method and Description |
|---|---|
static SettlementType |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static SettlementType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SettlementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SettlementType CASH
Cash amount is paid (by the short party to the long party) at expiry.
public static final SettlementType PHYSICAL
The two parties enter into a new financial instrument at expiry.
public static SettlementType[] values()
for (SettlementType c : SettlementType.values()) System.out.println(c);
public static SettlementType 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 SettlementType 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<SettlementType>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.