public enum Country extends Enum<Country>
| Enum Constant and Description |
|---|
Australia |
Canada |
China |
France |
Georgia |
Germany |
Italy |
Poland |
Spain |
Sweden |
UnitedKingdom |
USA |
| Modifier and Type | Method and Description |
|---|---|
static List<Country> |
findCountryForLanguage(LanguageCode language) |
String |
getCode() |
static Country |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Country[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Country Poland
public static final Country UnitedKingdom
public static final Country Australia
public static final Country USA
public static final Country Canada
public static final Country Spain
public static final Country France
public static final Country Georgia
public static final Country Italy
public static final Country Germany
public static final Country Sweden
public static final Country China
public static Country[] values()
for (Country c : Country.values()) System.out.println(c);
public static Country 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 String getCode()
public static List<Country> findCountryForLanguage(LanguageCode language)
Copyright © 2022. All rights reserved.