public enum CountryType extends Enum<CountryType>
| Enum Constant and Description |
|---|
BELGIUM |
GERMANY |
POLAND |
UNSPECIFIED |
| Modifier and Type | Method and Description |
|---|---|
static CountryType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CountryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CountryType GERMANY
public static final CountryType POLAND
public static final CountryType BELGIUM
public static final CountryType UNSPECIFIED
public static CountryType[] values()
for (CountryType c : CountryType.values()) System.out.println(c);
public static CountryType 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 nullCopyright © 2010–2020 T.I.V. Consulting GmbH. All rights reserved.