public enum ReportingCurrencyType extends Enum<ReportingCurrencyType> implements NamedEnum
There are three options - 'Specific', 'Natural' and 'None'.
| Enum Constant and Description |
|---|
NATURAL
The "natural" reporting currency.
|
NONE
No currency conversion is to be performed.
|
SPECIFIC
The specific reporting currency.
|
| Modifier and Type | Method and Description |
|---|---|
static ReportingCurrencyType |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static ReportingCurrencyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReportingCurrencyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReportingCurrencyType SPECIFIC
ReportingCurrency.of(Currency).public static final ReportingCurrencyType NATURAL
ReportingCurrency.NATURAL.public static final ReportingCurrencyType NONE
ReportingCurrency.NONE.public static ReportingCurrencyType[] values()
for (ReportingCurrencyType c : ReportingCurrencyType.values()) System.out.println(c);
public static ReportingCurrencyType 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 ReportingCurrencyType 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<ReportingCurrencyType>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.