public enum CurrencyMode extends java.lang.Enum<CurrencyMode>
Enum Constant and Description |
---|
CLASSIC_MULTI_CURRENCY |
SIMPLIFIED_MULTI_CURRENCY |
SINGLE_CURRENCY |
Modifier and Type | Method and Description |
---|---|
static CurrencyMode |
getCurrencyMode(int id)
Returns an instance of the enum with the specified identifier.
|
static CurrencyMode |
getCurrencyMode(java.lang.String displayName)
Returns an instance of the enum with the specified display name.
|
java.lang.String |
getDisplayName()
Returns the display name of this enum constant, exactly as declared in
its enum declaration.
|
int |
getId()
Returns the integer type of this enum constant, as contained in the
declaration.
|
static CurrencyMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CurrencyMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CurrencyMode CLASSIC_MULTI_CURRENCY
public static final CurrencyMode SIMPLIFIED_MULTI_CURRENCY
public static final CurrencyMode SINGLE_CURRENCY
public static CurrencyMode getCurrencyMode(int id)
id
- identifierpublic static CurrencyMode getCurrencyMode(java.lang.String displayName)
displayName
- user friendly namepublic java.lang.String getDisplayName()
public int getId()
public static CurrencyMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CurrencyMode[] values()
for (CurrencyMode c : CurrencyMode.values()) System.out.println(c);
Copyright © 2017, 2024, Oracle and/or its affiliates. All rights reserved.