public enum EtdSettlementType extends Enum<EtdSettlementType> implements NamedEnum
This is used for Flex options.
| Enum Constant and Description |
|---|
ALTERNATE
Alternate.
|
CASCADE
Cascade.
|
CASH
Cash settlement.
|
DERIVATIVE
Derivative.
|
NOTIONAL
Notional Settlement.
|
PAYMENT_VS_PAYMENT
Payment-versus-Payment.
|
PHYSICAL
Physical settlement.
|
STOCK
Stock.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Gets the short code for the type.
|
static EtdSettlementType |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static EtdSettlementType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EtdSettlementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EtdSettlementType CASH
public static final EtdSettlementType PHYSICAL
public static final EtdSettlementType DERIVATIVE
public static final EtdSettlementType NOTIONAL
public static final EtdSettlementType PAYMENT_VS_PAYMENT
public static final EtdSettlementType STOCK
public static final EtdSettlementType CASCADE
public static final EtdSettlementType ALTERNATE
public static EtdSettlementType[] values()
for (EtdSettlementType c : EtdSettlementType.values()) System.out.println(c);
public static EtdSettlementType 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 EtdSettlementType 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 getCode()
public String toString()
toString in class Enum<EtdSettlementType>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.