enumeration with multiple values code example
Example: enum multiple values
public enum Language{
English("english", "eng", "en", "en_GB", "en_US"),
German("german", "de", "ge"),
Croatian("croatian", "hr", "cro"),
Russian("russian");
private final List values;
Language(String ...values) {
this.values = Arrays.asList(values);
}
public List getValues() {
return values;
}
}