public enum BorderType extends java.lang.Enum<BorderType>
Enum Constant and Description |
---|
borough |
city |
county |
prefecture |
province |
state |
town |
township |
user_defined |
village |
Modifier and Type | Method and Description |
---|---|
byte |
getAdminLevel()
Gets the numeric administrative level that is associated with this level of border.
|
static BorderType |
value(java.lang.String name)
Get the enum value associated with the string name specified.
|
static BorderType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BorderType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BorderType user_defined
public static final BorderType village
public static final BorderType town
public static final BorderType city
public static final BorderType township
public static final BorderType county
public static final BorderType prefecture
public static final BorderType state
public static final BorderType province
public static final BorderType borough
public static BorderType[] values()
for (BorderType c : BorderType.values()) System.out.println(c);
public static BorderType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic byte getAdminLevel()
public static BorderType value(java.lang.String name)
name
- String to convert into an Enum