public enum Currency extends Enum<Currency>
| Modifier and Type | Field and Description |
|---|---|
static String |
CODE_CZK |
static String |
CODE_EUR |
static String |
CODE_GBP |
static String |
CODE_HUF |
static String |
CODE_PLN |
static String |
CODE_USD |
| 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 Currency CZK
public static final Currency EUR
public static final Currency PLN
public static final Currency HUF
public static final Currency USD
public static final Currency GBP
public static final String CODE_CZK
public static final String CODE_EUR
public static final String CODE_PLN
public static final String CODE_HUF
public static final String CODE_USD
public static final String CODE_GBP
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 © 2017. All rights reserved.