public enum CityType extends Enum<CityType> implements Enumeration
StkCityDatabase.| Enum Constant and Description | 
|---|
ADMINISTRATION_CENTER
A city that serves as an administration center. 
 | 
NATIONAL_CAPITAL
A city that serves as the national capital. 
 | 
POPULATED_PLACE
A city that has been categorized as a populated place. 
 | 
TERRITORIAL_CAPITAL
A city that serves as the territorial capital. 
 | 
UNSPECIFIED
A city for which a type has not been specified. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static CityType | 
getDefault()
Get the enum constant that is considered to be the default. 
 | 
static CityType | 
getFromValue(int value)
Get the enum constant that is associated with the given numeric value. 
 | 
int | 
getValue()
Get the numeric value associated with this enum constant. 
 | 
static CityType | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static CityType[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final CityType UNSPECIFIED
public static final CityType POPULATED_PLACE
public static final CityType ADMINISTRATION_CENTER
public static final CityType NATIONAL_CAPITAL
public static final CityType TERRITORIAL_CAPITAL
public static CityType[] values()
for (CityType c : CityType.values()) System.out.println(c);
public static CityType 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 int getValue()
getValue in interface Enumeration@Nonnull public static CityType getFromValue(int value)
value - a numeric value.