public enum CurveNodeDateType extends Enum<CurveNodeDateType> implements NamedEnum
This is used to identify how the date of a node should be calculated.
| Enum Constant and Description |
|---|
END
Defines the end date of the trade.
|
FIXED
Defines a fixed date that is externally provided.
|
LAST_FIXING
Defines the last fixing date referenced in the trade.
|
| Modifier and Type | Method and Description |
|---|---|
static CurveNodeDateType |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static CurveNodeDateType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CurveNodeDateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CurveNodeDateType FIXED
public static final CurveNodeDateType END
public static final CurveNodeDateType LAST_FIXING
public static CurveNodeDateType[] values()
for (CurveNodeDateType c : CurveNodeDateType.values()) System.out.println(c);
public static CurveNodeDateType 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 CurveNodeDateType 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<CurveNodeDateType>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.