| Modifier and Type | Method and Description |
|---|---|
String |
format(T value)
Creates a standard Strata mixed case name from an enum-style constant.
|
static <T extends Enum<T> & NamedEnum> |
of(Class<T> enumType)
Creates an instance deriving the formatted string from the enum constant name.
|
static <T extends Enum<T> & NamedEnum> |
ofManualToString(Class<T> enumType)
Creates an instance where the
toString method is written manually. |
T |
parse(String name)
Parses the standard external name for an enum.
|
public static <T extends Enum<T> & NamedEnum> EnumNames<T> of(Class<T> enumType)
T - the type of the enumenumType - the type of the enumpublic static <T extends Enum<T> & NamedEnum> EnumNames<T> ofManualToString(Class<T> enumType)
toString method is written manually.
The toString method is called to extract the correct formatted string.
T - the type of the enumenumType - the type of the enumpublic String format(T value)
value - the enum value to convertCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.