public enum Currency extends Enum<Currency>
| Modifier and Type | Field and Description |
|---|---|
static String |
CODE_CZK |
static String |
CODE_EUR |
| Modifier and Type | Method and Description |
|---|---|
static Currency |
getByCode(String code) |
static Currency |
getByNumericalCode(Integer code) |
String |
getCode() |
Integer |
getNumericalCode() |
void |
setNumericalCode(int numericalCode) |
static Currency |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Currency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final String CODE_CZK
public static final String CODE_EUR
public static Currency[] values()
for (Currency c : Currency.values()) System.out.println(c);
public static Currency 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 Integer getNumericalCode()
public String getCode()
public void setNumericalCode(int numericalCode)
Copyright © 2016. All rights reserved.