public enum EtdExpiryType extends Enum<EtdExpiryType> implements NamedEnum
Most ETDs expire monthly, on a date calculated via a formula.
Some ETDs expire weekly, or on a specific date, see EtdVariant for more details.
| Enum Constant and Description |
|---|
DAILY
The ETD expires on a specified day-of-month.
|
MONTHLY
The ETD expires once a month on a standardized day.
|
WEEKLY
The ETD expires in a specific week of the month.
|
| Modifier and Type | Method and Description |
|---|---|
static EtdExpiryType |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static EtdExpiryType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EtdExpiryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EtdExpiryType MONTHLY
public static final EtdExpiryType WEEKLY
EtdVariant.public static final EtdExpiryType DAILY
EtdVariant.public static EtdExpiryType[] values()
for (EtdExpiryType c : EtdExpiryType.values()) System.out.println(c);
public static EtdExpiryType 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 EtdExpiryType 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<EtdExpiryType>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.