public enum FutureOptionPremiumStyle extends Enum<FutureOptionPremiumStyle> implements NamedEnum
There are two styles of future options, one with daily margining, and one with an up-front premium. This class specifies the types.
| Enum Constant and Description |
|---|
DAILY_MARGIN
The "DailyMargin" style, used where the option has daily margining.
|
UPFRONT_PREMIUM
The "UpfrontPremium" style, used where the option has an upfront premium.
|
| Modifier and Type | Method and Description |
|---|---|
static FutureOptionPremiumStyle |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static FutureOptionPremiumStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FutureOptionPremiumStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FutureOptionPremiumStyle DAILY_MARGIN
public static final FutureOptionPremiumStyle UPFRONT_PREMIUM
public static FutureOptionPremiumStyle[] values()
for (FutureOptionPremiumStyle c : FutureOptionPremiumStyle.values()) System.out.println(c);
public static FutureOptionPremiumStyle 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 FutureOptionPremiumStyle 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<FutureOptionPremiumStyle>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.