Пример работы с enum в JAVA
public enum Currency {
RU("ru", "Рубли", "ru-RU", +300),
US("us", "Dollar", "en-US", -700);
private final String code;
private final String name;
private final String countryCode;
private final Integer locale;
Currency(String code, String name, String countryCode, Integer locale) {
this.code = code;
this.name = name;
this.countryCode = countryCode;
this.locale = locale;
}
public String getCode() {
return code;
}
public String getName() {
return name;
}
public String getCountryCode() {
return countryCode;
}
public Integer getLocale() {
return locale;
}
}