public enum RegionLevel extends Enum<RegionLevel>
| Enum Constant and Description |
|---|
CITY |
COUNTRY |
DISTRICT |
PROVINCE |
STREET |
| Modifier and Type | Method and Description |
|---|---|
static RegionLevel |
valueOf(int ordinal) |
static RegionLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RegionLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RegionLevel COUNTRY
public static final RegionLevel PROVINCE
public static final RegionLevel CITY
public static final RegionLevel DISTRICT
public static final RegionLevel STREET
public static RegionLevel[] values()
for (RegionLevel c : RegionLevel.values()) System.out.println(c);
public static RegionLevel 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 static RegionLevel valueOf(int ordinal)
Copyright © 2019. All rights reserved.